aboutsummaryrefslogtreecommitdiff
path: root/source/c4.c
diff options
context:
space:
mode:
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;