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 tests for increment_i
[swftools.git]
/
lib
/
art
/
art_affine.c
diff --git
a/lib/art/art_affine.c
b/lib/art/art_affine.c
index
166ae9f
..
9f332a3
100644
(file)
--- a/
lib/art/art_affine.c
+++ b/
lib/art/art_affine.c
@@
-124,7
+124,7
@@
art_ftoa (char str[80], double x)
*p++ = '-';
x = -x;
}
*p++ = '-';
x = -x;
}
- if (floor (x + EPSILON / 2) < 1)
+ if ((int)floor ((x + EPSILON / 2) < 1))
{
*p++ = '0';
*p++ = '.';
{
*p++ = '0';
*p++ = '.';
@@
-147,7
+147,7
@@
art_ftoa (char str[80], double x)
x -= floor (x + EPSILON / 2);
for (j = i; j < 6; j++)
x *= 10;
x -= floor (x + EPSILON / 2);
for (j = i; j < 6; j++)
x *= 10;
- ix = (int)floor (x + 0.5);
+ ix = floor (x + 0.5);
for (j = 0; j < i; j++)
ix *= 10;
for (j = 0; j < i; j++)
ix *= 10;