From c71fe4313fe43128097c1ef5bd276fb5cb1cc123 Mon Sep 17 00:00:00 2001 From: kramm Date: Wed, 9 Apr 2008 07:33:46 +0000 Subject: [PATCH] added Huub's fix for a bug in the parseTwip function --- src/swfc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 1.7.10.4