From 940a55ccf4898c641d0b3b7138d679943611e1d6 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 19 Jun 2011 17:57:51 +0200 Subject: [PATCH] eval: Fix 32bit unsigned parsing Fixes ticket264 Signed-off-by: Michael Niedermayer --- libavutil/eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/eval.c b/libavutil/eval.c index 36cc76d3bf..fa2999b84c 100644 --- a/libavutil/eval.c +++ b/libavutil/eval.c @@ -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 */