mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
Support casting from enum to float.
This commit is contained in:
parent
5a78758781
commit
c069bafad8
1 changed files with 1 additions and 1 deletions
|
@ -2587,7 +2587,7 @@ cast_expr (type_t *type, expr_t *e)
|
|||
&& (e_type == &type_float || e_type == &type_integer
|
||||
|| e_type->type == ev_pointer))
|
||||
|| (type == &type_float
|
||||
&& (e_type == &type_integer)))) {
|
||||
&& (e_type == &type_integer || is_enum (e_type))))) {
|
||||
return cast_error (e, get_type (e), type);
|
||||
}
|
||||
if (is_array (e_type)) {
|
||||
|
|
Loading…
Reference in a new issue