Fix value of X = Y when Y is an int constant
This commit is contained in:
parent
40cb7f14d0
commit
86bc9cafd4
1 changed files with 9 additions and 1 deletions
|
|
@ -2568,7 +2568,15 @@ ExpEmit FxAssign::Emit(VMFunctionBuilder *build)
|
|||
}
|
||||
|
||||
pointer.Free(build);
|
||||
return result;
|
||||
|
||||
if(intconst)
|
||||
{ //fix int constant return for assignment
|
||||
return Right->Emit(build);
|
||||
}
|
||||
else
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue