[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.
This commit is contained in:
Bill Currie 2022-04-29 11:29:14 +09:00
parent 1da9fff3ae
commit b480590d90
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}