diff --git a/include/PR/gu.h b/include/PR/gu.h index 7744bdf92..3b5518c7b 100644 --- a/include/PR/gu.h +++ b/include/PR/gu.h @@ -35,7 +35,7 @@ #define OS_M_PI 3.14159265358979323846 #define M_DTOR (3.14159265358979323846/180.0) -#define FTOFIX32(x) (long)((x) * (float)0x00010000) +#define FTOFIX32(x) (int)((x) * (float)0x00010000) #define FIX32TOF(x) ((float)(x) * (1.0f / (float)0x00010000)) #define FTOFRAC8(x) ((int) MIN(((x) * (128.0f)), 127.0f) & 0xff)