mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Support using enums as array indices.
This commit is contained in:
parent
f18a4d3c4a
commit
ee8247ec61
1 changed files with 1 additions and 1 deletions
|
@ -2125,7 +2125,7 @@ array_expr (expr_t *array, expr_t *index)
|
|||
|
||||
if (array_type->type != ev_pointer && !is_array (array_type))
|
||||
return error (array, "not an array");
|
||||
if (index_type != &type_integer)
|
||||
if (!is_integral (index_type))
|
||||
return error (index, "invalid array index type");
|
||||
if (is_short_val (index))
|
||||
ind = expr_short (index);
|
||||
|
|
Loading…
Reference in a new issue