diff options
Diffstat (limited to 'formatting.c')
-rw-r--r-- | formatting.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/formatting.c b/formatting.c index ac0222c..60f37ee 100644 --- a/formatting.c +++ b/formatting.c @@ -273,7 +273,7 @@ char* test_floored_exponent_notation() { exp_notated res = ull_floored_exponent_notation(9489345, 3); snprintf(msg, bufsize, - "ull_floored_exponent_notation(9489345, 3): expected 948*10^4, got %d*%d^%d", + "ull_floored_exponent_notation(9489345, 3): expected 948*10^4, got %llu*%d^%d", res.mantissa, res.base, res.exponent ); mt_assert( @@ -284,7 +284,7 @@ char* test_floored_exponent_notation() { res = ull_floored_exponent_notation_base(3145733, 1, 1024); snprintf(msg, bufsize, - "ull_floored_exponent_notation_base(3145733, 1, 1024): expected 3*1024^2, got %d*%d^%d", + "ull_floored_exponent_notation_base(3145733, 1, 1024): expected 3*1024^2, got %llu*%d^%d", res.mantissa, res.base, res.exponent ); mt_assert( @@ -303,7 +303,7 @@ char* test_ceiled_exponent_notation() { exp_notated res = ull_ceiled_exponent_notation(9489345, 3); snprintf(msg, bufsize, - "ull_ceiled_exponent_notation(9489345, 3): expected 949*10^4, got %d*%d^%d", + "ull_ceiled_exponent_notation(9489345, 3): expected 949*10^4, got %llu*%d^%d", res.mantissa, res.base, res.exponent ); mt_assert( @@ -314,7 +314,7 @@ char* test_ceiled_exponent_notation() { res = ull_ceiled_exponent_notation_base(3145733, 1, 1024); snprintf(msg, bufsize, - "ull_ceiled_exponent_notation_base(3145733, 1, 1024): expected 4*1024^2, got %d*%d^%d", + "ull_ceiled_exponent_notation_base(3145733, 1, 1024): expected 4*1024^2, got %llu*%d^%d", res.mantissa, res.base, res.exponent ); mt_assert( |