From: kramm Date: Wed, 9 Apr 2008 07:33:46 +0000 (+0000) Subject: added Huub's fix for a bug in the parseTwip function X-Git-Tag: buttons-working~246 X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=c71fe4313fe43128097c1ef5bd276fb5cb1cc123;hp=cf6dddb9a104461e61d8d098e6f87781da621be4;p=swftools.git added Huub's fix for a bug in the parseTwip function --- diff --git a/src/swfc.c b/src/swfc.c index c07a8a0..70d3c24 100644 --- a/src/swfc.c +++ b/src/swfc.c @@ -2364,11 +2364,11 @@ int parseTwip(char*str) } free(old); if(l==0) - return sign*atoi(str)*20; + return sign*(atoi(str)*20); if(l==1) - return sign*atoi(str)*20+atoi(dot)*2; + return sign*(atoi(str)*20+atoi(dot)*2); if(l==2) - return sign*atoi(str)*20+atoi(dot)/5; + return sign*(atoi(str)*20+atoi(dot)/5); } return 0; }