added typecasts when converting from unsigned int to int

This commit is contained in:
Daniel Stenberg 2001-08-14 08:20:17 +00:00
parent e32641d412
commit 7b4b166718
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@
char *curl_escape(char *string, int length)
{
int alloc = (length?length:strlen(string))+1;
int alloc = (length?length:(int)strlen(string))+1;
char *ns = malloc(alloc);
unsigned char in;
int newlen = alloc;
@ -77,7 +77,7 @@ char *curl_escape(char *string, int length)
char *curl_unescape(char *string, int length)
{
int alloc = (length?length:strlen(string))+1;
int alloc = (length?length:(int)strlen(string))+1;
char *ns = malloc(alloc);
unsigned char in;
int index=0;