From: Dale Weiler Date: Sat, 24 May 2014 13:59:43 +0000 (-0400) Subject: Use flags instead. X-Git-Tag: xonotic-v0.8.1~9^2~32^2~16 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5dc7e62b19dbb8a8c9187ac5f182e671ab08a71d;p=xonotic%2Fgmqcc.git Use flags instead. --- diff --git a/fold.c b/fold.c index 1cd8dfa..6d5d37a 100644 --- 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 {