From: Matthias Kramm Date: Fri, 10 Apr 2009 22:26:52 +0000 (+0200) Subject: swfc: parse percent values as floating point X-Git-Tag: release-0-9-0~11 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=d3b8cc9311940208b32917a72625b3b6bdda1165;p=swftools.git swfc: parse percent values as floating point --- diff --git a/src/swfc.c b/src/swfc.c index 646ec80..f07d424 100644 --- a/src/swfc.c +++ b/src/swfc.c @@ -2714,7 +2714,7 @@ float parsePercent(const char*str) if(!l) return 1.0; if(str[l-1]=='%') { - return atoi(str)/100.0; + return atof(str)/100.0; } syntaxerror("Expression '%s' is not a percentage", str); return 0;