mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[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:
parent
1da9fff3ae
commit
b480590d90
1 changed files with 2 additions and 0 deletions
|
@ -1010,6 +1010,8 @@ is_integral (const type_t *type)
|
||||||
type = unalias_type (type);
|
type = unalias_type (type);
|
||||||
if (is_int (type) || is_uint (type) || is_short (type))
|
if (is_int (type) || is_uint (type) || is_short (type))
|
||||||
return 1;
|
return 1;
|
||||||
|
if (is_long (type) || is_ulong (type) || is_ushort (type))
|
||||||
|
return 1;
|
||||||
return is_enum (type);
|
return is_enum (type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue