aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alu.h
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/Include/alu.h')
-rw-r--r--OpenAL32/Include/alu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index 4c05b733..05055bd1 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -78,7 +78,8 @@ typedef enum {
#define BUFFERSIZE 8192
#define FRACTIONBITS (14)
-#define FRACTIONMASK ((1<<FRACTIONBITS)-1)
+#define FRACTIONONE (1<<FRACTIONBITS)
+#define FRACTIONMASK (FRACTIONONE-1)
#define MAX_PITCH (INT_MAX & ~FRACTIONMASK)
/* NOTE: The AL_FORMAT_REAR* enums aren't handled here because they're