[qfcc] Handle bare "short"

Missed this case in duplicate_type. Allows "short foo" and
"sizeof(short)" (even though qfcc and the engine have two ideas of the
size: I expect trouble later).
This commit is contained in:
Bill Currie 2022-01-19 21:21:27 +09:00
parent 9f42cf726b
commit 07c4d28638

View file

@ -327,7 +327,7 @@ default_type (specifier_t spec, symbol_t *sym)
} else {
if (spec.is_unsigned) {
spec.type = &type_uint;
} else if (spec.is_signed) {
} else if (spec.is_signed || spec.is_short) {
spec.type = &type_int;
}
}