use unsigned int hex to receive the hex digit in, caused a warning with
authorDaniel Stenberg <daniel@haxx.se>
Fri, 9 Mar 2001 15:11:39 +0000 (15:11 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 9 Mar 2001 15:11:39 +0000 (15:11 +0000)
-Wall and a new gcc

lib/escape.c

index df89178..ddb364a 100644 (file)
@@ -78,7 +78,7 @@ char *curl_unescape(char *string, int length)
    char *ns = malloc(alloc);
    unsigned char in;
    int index=0;
-   int hex;
+   unsigned int hex;
    char querypart=FALSE; /* everything to the right of a '?' letter is
                             the "query part" where '+' should become ' '.
                             RFC 2316, section 3.10 */