From 3be3d993576fbce97cfa6068e427334deb5feb96 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Sun, 21 Apr 2024 18:34:15 +0300 Subject: Minor fixes --- formatting.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'formatting.c') 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( -- cgit v1.2.3