mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed enum comparison to int when there's an int conversion operator
This commit is contained in:
parent
70c2131c18
commit
dfbb09a8ac
4 changed files with 41 additions and 22 deletions
|
@ -6886,14 +6886,6 @@ bool CeContext::Execute(CeFunction* startFunction, uint8* startStackPtr, uint8*
|
|||
SetAndRestoreValue<BfTypeInstance*> prevTypeInstance(mCurModule->mCurTypeInstance, mCallerTypeInstance);
|
||||
SetAndRestoreValue<bool> emitIgnoreWrites(ceModule->mBfIRBuilder->mIgnoreWrites, ignoreWrites.mPrevVal);
|
||||
|
||||
// int32 strInstAddr = *(int32*)((uint8*)stackPtr + 0);
|
||||
// String emitStr;
|
||||
// if (!GetStringFromAddr(strInstAddr, emitStr))
|
||||
// {
|
||||
// _Fail("Invalid String");
|
||||
// return false;
|
||||
// }
|
||||
|
||||
addr_ce strViewPtr = *(addr_ce*)((uint8*)stackPtr);
|
||||
String emitStr;
|
||||
if (!GetStringFromStringView(strViewPtr, emitStr))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue