From b480590d909132c63f9eba5504975dcf1b4c70f8 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 29 Apr 2022 11:29:14 +0900 Subject: [PATCH] [qfcc] Treat long, ulong and ushort as math types Not so sure about the value of treating ushort (and short) as a math type, but long and ulong are definitely necessary. --- tools/qfcc/source/type.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/qfcc/source/type.c b/tools/qfcc/source/type.c index f25cb6eba..b6ca7da62 100644 --- a/tools/qfcc/source/type.c +++ b/tools/qfcc/source/type.c @@ -1010,6 +1010,8 @@ is_integral (const type_t *type) type = unalias_type (type); if (is_int (type) || is_uint (type) || is_short (type)) return 1; + if (is_long (type) || is_ulong (type) || is_ushort (type)) + return 1; return is_enum (type); }