X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fart%2Fart_affine.c;h=166ae9fc42e4681c820c44d61c0a73732909ee18;hp=9f332a35201680baea9e1ee254d7ba203cfdc8ef;hb=b93de056e0b79f57c8f8fe22985b166c7d2c3dc3;hpb=a3eecab9e8f6a1b0b887f1bd082bd064f01ecffd diff --git a/lib/art/art_affine.c b/lib/art/art_affine.c index 9f332a3..166ae9f 100644 --- 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; } - if ((int)floor ((x + EPSILON / 2) < 1)) + if (floor (x + EPSILON / 2) < 1) { *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; - ix = floor (x + 0.5); + ix = (int)floor (x + 0.5); for (j = 0; j < i; j++) ix *= 10;