Skip to content

Commit

Permalink
Change int_nums to int in test_snprintf
Browse files Browse the repository at this point in the history
All format specifiers in `int_fmt` are for `int`, not `long`, and all numbers
in `int_nums` fit into `int`.
  • Loading branch information
ArtSin committed Oct 23, 2024
1 parent 5142eea commit 62953e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_snprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 62953e9

Please sign in to comment.