aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-08-24 17:10:24 +0000
committerYang Tse <yangsita@gmail.com>2008-08-24 17:10:24 +0000
commit62d94ff342d3834fc6439afd90e070ea7a9be93e (patch)
treef9d66d43f5343f19a16501642fdf895d21f3dd00 /tests
parentcbc04a7d40895d731d833c34d1c55e31b3fe4b79 (diff)
Fix wrong signed int formatting string directive in test case #557.
This error did not cause test failures on systems where sizeof(int) == sizeof(long).
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/lib557.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libtest/lib557.c b/tests/libtest/lib557.c
index 57061a759..13148dd84 100644
--- a/tests/libtest/lib557.c
+++ b/tests/libtest/lib557.c
@@ -440,7 +440,7 @@ static int test_signed_int_formatting(void)
si_test[i].result[j] = 'X';
si_test[i].result[BUFSZ-1] = '\0';
- (void)curl_msprintf(si_test[i].result, "%ld", si_test[i].num);
+ (void)curl_msprintf(si_test[i].result, "%d", si_test[i].num);
if(memcmp(si_test[i].result,
si_test[i].expected,