git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf6dddb
)
added Huub's fix for a bug in the parseTwip function
author
kramm
<kramm>
Wed, 9 Apr 2008 07:33:46 +0000
(07:33 +0000)
committer
kramm
<kramm>
Wed, 9 Apr 2008 07:33:46 +0000
(07:33 +0000)
src/swfc.c
patch
|
blob
|
history
diff --git
a/src/swfc.c
b/src/swfc.c
index
c07a8a0
..
70d3c24
100644
(file)
--- 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;
}