OSDN Git Service

eval: Fix 32bit unsigned parsing
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 19 Jun 2011 15:57:51 +0000 (17:57 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 19 Jun 2011 23:58:18 +0000 (01:58 +0200)
Fixes ticket264

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/eval.c

index 36cc76d..fa2999b 100644 (file)
@@ -76,7 +76,7 @@ double av_strtod(const char *numstr, char **tail)
     double d;
     char *next;
     if(numstr[0]=='0' && (numstr[1]|0x20)=='x') {
-        d = strtol(numstr, &next, 16);
+        d = strtoul(numstr, &next, 16);
     } else
         d = strtod(numstr, &next);
     /* if parsing succeeded, check for and interpret postfixes */