diff options
author | João Silva | 2017-06-18 16:16:19 +0100 |
---|---|---|
committer | João Silva | 2017-06-18 16:16:19 +0100 |
commit | bcaf44c511efaad9d803dde9b0fdbb046498c66f (patch) | |
tree | c526c7d332be548a42364eea9113b6d33345b840 /source/c4.c | |
parent | 10a58e72aa3f74a821fa9be07ffd3992ffa93600 (diff) | |
download | snesemu-bcaf44c511efaad9d803dde9b0fdbb046498c66f.tar.gz snesemu-bcaf44c511efaad9d803dde9b0fdbb046498c66f.tar.bz2 snesemu-bcaf44c511efaad9d803dde9b0fdbb046498c66f.zip |
Support for savestate versioning. Plenty of cleanups.
Diffstat (limited to 'source/c4.c')
-rw-r--r-- | source/c4.c | 4 |
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; |