From e68fef2645c69f4e89dd6175f94d71875c42ef7c Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 27 May 2026 17:33:23 +0300 Subject: fix: Simple string convertion for all single-digit values --- BigInt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'BigInt.c') diff --git a/BigInt.c b/BigInt.c index b19d3e6..4323443 100644 --- a/BigInt.c +++ b/BigInt.c @@ -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; } -- cgit v1.2.3