X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfc.c;h=f07d424159de493702a2e8d4b3c6d9e372f4ba57;hb=aab59bee1b79b487e2a15ec57a80a857ffd623a5;hp=646ec8004e36e72b78d94ed72b4d66f6322ade77;hpb=65dec90461cf9ceb574ba89189a65980960a3f56;p=swftools.git 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;