aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-04-14 12:53:53 +0000
committerYang Tse <yangsita@gmail.com>2009-04-14 12:53:53 +0000
commitc382c550e7d8ad54d2c35b0fea9d0eef09ff3a25 (patch)
tree4a55cc0951de068e16c9e016bdb8b70fde9c6473 /tests
parentc663494c69e81f8d88ccf8dad7e4ae3ef726e9d8 (diff)
fix compiler warning: implicit conversion shortens 64-bit value into a 32-bit value
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/lib543.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/libtest/lib543.c b/tests/libtest/lib543.c
index 662883529..852645695 100644
--- a/tests/libtest/lib543.c
+++ b/tests/libtest/lib543.c
@@ -22,7 +22,8 @@ int test(char *URL)
0x1d, 0x57, 0xe1};
CURL* easy = curl_easy_init();
- char* s = curl_easy_escape(easy, (char*)a, sizeof(a));
+ int asize = (int)sizeof(a);
+ char* s = curl_easy_escape(easy, (char*)a, asize);
(void)URL;
printf("%s\n", s);