[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
|
@ -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 New Issue