aboutsummaryrefslogtreecommitdiff
path: root/source/c4.c
diff options
context:
space:
mode:
authorJoão Silva2017-06-18 16:16:19 +0100
committerJoão Silva2017-06-18 16:16:19 +0100
commitbcaf44c511efaad9d803dde9b0fdbb046498c66f (patch)
treec526c7d332be548a42364eea9113b6d33345b840 /source/c4.c
parent10a58e72aa3f74a821fa9be07ffd3992ffa93600 (diff)
downloadsnes9x2005-bcaf44c511efaad9d803dde9b0fdbb046498c66f.tar.gz
snes9x2005-bcaf44c511efaad9d803dde9b0fdbb046498c66f.tar.bz2
snes9x2005-bcaf44c511efaad9d803dde9b0fdbb046498c66f.zip
Support for savestate versioning. Plenty of cleanups.
Diffstat (limited to 'source/c4.c')
-rw-r--r--source/c4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/c4.c b/source/c4.c
index 9519cc3..251493c 100644
--- a/source/c4.c
+++ b/source/c4.c
@@ -111,9 +111,9 @@ int16_t _atan2(int16_t x, int16_t y)
int32_t absAtan;
if (x1 > y1)
- absAtan = atantbl[(unsigned char)((y1 << 8) / x1)];
+ absAtan = atantbl[(uint8_t)((y1 << 8) / x1)];
else
- absAtan = atantbl[(unsigned char)((x1 << 8) / y1)];
+ absAtan = atantbl[(uint8_t)((x1 << 8) / y1)];
if ((x >= 0) ^ (y >= 0))
return -absAtan;