1
0
Fork 0
mirror of https://git.coom.tech/drummyfish/raycastlib.git synced 2024-11-21 20:29:59 +01:00

Fix sqrt data types

This commit is contained in:
Miloslav Číž 2018-09-14 15:00:31 +02:00
parent cdfefa6c99
commit 680e5b23a8

View file

@ -455,12 +455,13 @@ uint16_t sqrtInt(Unit value)
{ {
profileCall(sqrtInt); profileCall(sqrtInt);
Unit result = 0;
Unit a = value;
#ifdef RAYCAST_TINY #ifdef RAYCAST_TINY
uint32_t b = 1u << 14; uint16_t result = 0;
uint16_t a = value;
uint16_t b = 1u << 14;
#else #else
uint32_t result = 0;
uint32_t a = value;
uint32_t b = 1u << 30; uint32_t b = 1u << 30;
#endif #endif