mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-20 18:42:17 +00:00
- fixed: FxFloatCast must transfer the outer expression's value type to the inner expression if it performs a float->float cast.
This violated an important rule that a cast may not alter the expression's type and led to failed asserts elsewhere.
(cherry picked from commit 7d515e72c2
)
This commit is contained in:
parent
1e65eea77f
commit
6fe5af7c0c
1 changed files with 1 additions and 0 deletions
|
@ -1069,6 +1069,7 @@ FxExpression *FxFloatCast::Resolve(FCompileContext &ctx)
|
|||
if (basex->IsFloat())
|
||||
{
|
||||
FxExpression *x = basex;
|
||||
x->ValueType = ValueType;
|
||||
basex = nullptr;
|
||||
delete this;
|
||||
return x;
|
||||
|
|
Loading…
Reference in a new issue