fix compiler warning: implicit conversion shortens 64-bit value into a 32-bit value

This commit is contained in:
Yang Tse 2009-04-14 12:53:53 +00:00
parent c663494c69
commit c382c550e7
9 changed files with 42 additions and 22 deletions

View file

@ -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);