git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added Huub's fix for a bug in the parseTwip function
[swftools.git]
/
src
/
swfc.c
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)
}
free(old);
if(l==0)
- return sign*atoi(str)*20;
+ return sign*(atoi(str)*20);
if(l==1)
if(l==1)
- return sign*atoi(str)*20+atoi(dot)*2;
+ return sign*(atoi(str)*20+atoi(dot)*2);
if(l==2)
if(l==2)
- return sign*atoi(str)*20+atoi(dot)/5;
+ return sign*(atoi(str)*20+atoi(dot)/5);
}
return 0;
}
}
return 0;
}