mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-25 22:01:33 +00:00
[qfcc] Ensure scale expressions have the correct type
fold_constants was replacing the pseudoscalar type with a float. I really need to rewrite that whole block sometime.
This commit is contained in:
parent
eb9954700a
commit
91c3049348
1 changed files with 1 additions and 1 deletions
|
@ -486,9 +486,9 @@ scale_expr (type_t *type, expr_t *a, expr_t *b)
|
||||||
scale = fold_constants (scale);
|
scale = fold_constants (scale);
|
||||||
if (neg) {
|
if (neg) {
|
||||||
scale = neg_expr (scale);
|
scale = neg_expr (scale);
|
||||||
scale->e.expr.type = type;
|
|
||||||
scale = fold_constants (scale);
|
scale = fold_constants (scale);
|
||||||
}
|
}
|
||||||
|
scale = cast_expr (type, scale);
|
||||||
return scale;
|
return scale;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue