diff --git a/libnum/src/sh4aldsp/div_i32_i16_i16.s b/libnum/src/sh4aldsp/div_i32_i16_i16.s index 48a74dc..801d199 100644 --- a/libnum/src/sh4aldsp/div_i32_i16_i16.s +++ b/libnum/src/sh4aldsp/div_i32_i16_i16.s @@ -6,7 +6,7 @@ # SH4AL-DSP optimized i32 / i16 -> i16 division. # # This simply uses the CPU's ability to divide without rotation for 16 bit -# divisors without all the boilerplate than libgcc's __sdivisi3 requires since +# divisors without all the boilerplate that libgcc's __sdivisi3 requires since # it assumes 32-bit inputs. Used for num16 division. # --- diff --git a/libnum/src/str.cpp b/libnum/src/str.cpp index 9a283af..1998c75 100644 --- a/libnum/src/str.cpp +++ b/libnum/src/str.cpp @@ -61,7 +61,7 @@ static int toString(char *str, T x) integral_part = -integral_part - (x.frac().v != 0); } - n += sprintf(str + n, "%ld", integral_part); + n += sprintf(str + n, "%lld", integral_part); if(x.frac().v != 0) { str[n++] = '.'; n += decimalDigits(str + n, x);