mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- removed two bogus asserts from the script compiler.
This commit is contained in:
parent
1855edba37
commit
ba8a334862
1 changed files with 2 additions and 2 deletions
|
@ -1064,7 +1064,7 @@ FxExpression *FxFloatCast::Resolve(FCompileContext &ctx)
|
||||||
ExpEmit FxFloatCast::Emit(VMFunctionBuilder *build)
|
ExpEmit FxFloatCast::Emit(VMFunctionBuilder *build)
|
||||||
{
|
{
|
||||||
ExpEmit from = basex->Emit(build);
|
ExpEmit from = basex->Emit(build);
|
||||||
assert(!from.Konst);
|
//assert(!from.Konst);
|
||||||
assert(basex->ValueType->GetRegType() == REGT_INT);
|
assert(basex->ValueType->GetRegType() == REGT_INT);
|
||||||
from.Free(build);
|
from.Free(build);
|
||||||
ExpEmit to(build, REGT_FLOAT);
|
ExpEmit to(build, REGT_FLOAT);
|
||||||
|
@ -7506,7 +7506,7 @@ ExpEmit FxArrayElement::Emit(VMFunctionBuilder *build)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
static int LKR_Ops[] = { OP_LK_R, OP_LKF_R, OP_LKS_R, OP_LKP_R };
|
static int LKR_Ops[] = { OP_LK_R, OP_LKF_R, OP_LKS_R, OP_LKP_R };
|
||||||
assert(start.RegType == ValueType->GetRegType());
|
//assert(start.RegType == ValueType->GetRegType());
|
||||||
ExpEmit dest(build, start.RegType);
|
ExpEmit dest(build, start.RegType);
|
||||||
if (start.RegNum <= 255)
|
if (start.RegNum <= 255)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue