From 62953e9ecfcc1c7acaa44b6400fa37f391e5992e Mon Sep 17 00:00:00 2001 From: ArtSin Date: Wed, 23 Oct 2024 13:55:44 +0400 Subject: [PATCH] Change `int_nums` to `int` in `test_snprintf` All format specifiers in `int_fmt` are for `int`, not `long`, and all numbers in `int_nums` fit into `int`. --- tests/test_snprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_snprintf.c b/tests/test_snprintf.c index 3cbe231..5354856 100644 --- a/tests/test_snprintf.c +++ b/tests/test_snprintf.c @@ -28,7 +28,7 @@ int main(void) char *int_fmt[] = {"%-1.5d", "%1.5d", "%123.9d", "%5.5d", "%10.5d", "% 10.5d", "%+22.33d", "%01.3d", "%4d", "0x%x", "0x%04x", NULL}; - long int_nums[] = {-1, 134, 91340, 341, 0203, 0x76543210, 0}; + int int_nums[] = {-1, 134, 91340, 341, 0203, 0x76543210, 0}; int x, y; int fail = 0; int num = 0;