let's avoid int32_t since we don't use libc
authorJohn Tsiombikas <nuclear@member.fsf.org>
Fri, 7 Aug 2020 12:35:54 +0000 (15:35 +0300)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Fri, 7 Aug 2020 12:35:54 +0000 (15:35 +0300)
miniglut.c

index 0cac4a1..ccb6c5c 100644 (file)
@@ -2300,7 +2300,7 @@ static void bezier_patch(float *res, float *cp, float u, float v)
 static float rsqrt(float x)
 {
        float xhalf = x * 0.5f;
-       int32_t i = *(int32_t*)&x;
+       int i = *(int*)&x;
        i = 0x5f3759df - (i >> 1);
        x = *(float*)&i;
        x = x * (1.5f - xhalf * x * x);