mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 06:10:56 +00:00
[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:
parent
9f42cf726b
commit
07c4d28638
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue