diff options
| -rw-r--r-- | BigInt.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -372,12 +372,12 @@ B_tostr(MemoryManager *mm, BigInt intx) { usize n = B_bitwidth(intx); - if (0 == n) { + if (10 > n) { char *str = NULL; if (R_Ok != mm->alloc(*mm, (void**)&str, sizeof(char) * 2)) return NULL; - str[0] = '0'; + str[0] = '0' + n; str[1] = '\0'; return str; } |
