projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbc04a7
)
Fix wrong signed int formatting string directive in test case #557.
author
Yang Tse
<yangsita@gmail.com>
Sun, 24 Aug 2008 17:10:24 +0000
(17:10 +0000)
committer
Yang Tse
<yangsita@gmail.com>
Sun, 24 Aug 2008 17:10:24 +0000
(17:10 +0000)
This error did not cause test failures on systems where sizeof(int) == sizeof(long).
tests/libtest/lib557.c
patch
|
blob
|
history
diff --git
a/tests/libtest/lib557.c
b/tests/libtest/lib557.c
index
57061a7
..
13148dd
100644
(file)
--- 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, "%
l
d", 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,