From c382c550e7d8ad54d2c35b0fea9d0eef09ff3a25 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 14 Apr 2009 12:53:53 +0000 Subject: fix compiler warning: implicit conversion shortens 64-bit value into a 32-bit value --- tests/libtest/lib543.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/libtest') 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); -- cgit v1.2.3