]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Use flags instead.
authorDale Weiler <weilercdale@gmail.com>
Sat, 24 May 2014 13:59:43 +0000 (09:59 -0400)
committerDale Weiler <weilercdale@gmail.com>
Sat, 24 May 2014 13:59:43 +0000 (09:59 -0400)
fold.c

diff --git a/fold.c b/fold.c
index 1cd8dfa21aeda2757d751f33bc784a2669d22b90..6d5d37ad403a4130e0fc8a989077c778f93e4831 100644 (file)
--- a/fold.c
+++ b/fold.c
@@ -48,11 +48,11 @@ typedef union {
 } sfloat_cast_t;
 
 typedef enum {
-    SFLOAT_INVALID   = 1,
-    SFLOAT_DIVBYZERO = 4,
-    SFLOAT_OVERFLOW  = 8,
-    SFLOAT_UNDERFLOW = 16,
-    SFLOAT_INEXACT   = 32
+    SFLOAT_INVALID   = 1 << 0,
+    SFLOAT_DIVBYZERO = 1 << 1,
+    SFLOAT_OVERFLOW  = 1 << 2,
+    SFLOAT_UNDERFLOW = 1 << 3,
+    SFLOAT_INEXACT   = 1 << 4
 } sfloat_exceptionflags_t;
 
 typedef enum {