mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed failed var wrapping
This commit is contained in:
parent
4765bd9738
commit
31ac632ea6
2 changed files with 4 additions and 2 deletions
|
@ -5186,7 +5186,9 @@ BfPrimitiveType* BfModule::GetPrimitiveType(BfTypeCode typeCode)
|
|||
case BfTypeCode_StringId:
|
||||
BFMODULE_FATAL(this, "Invalid use of StringId");
|
||||
break;
|
||||
default: break;
|
||||
default:
|
||||
BF_DBG_FATAL("Invalid type");
|
||||
break;
|
||||
}
|
||||
mContext->mPrimitiveTypes[typeCode] = primType;
|
||||
}
|
||||
|
|
|
@ -576,7 +576,7 @@ public:
|
|||
|
||||
public:
|
||||
virtual bool IsPrimitiveType() override { return true; }
|
||||
virtual bool IsWrappableType() override { return true; }
|
||||
virtual bool IsWrappableType() override { return (mTypeDef->mTypeCode >= BfTypeCode_Boolean) && (mTypeDef->mTypeCode <= BfTypeCode_Double); }
|
||||
virtual BfPrimitiveType* ToPrimitiveType() override { return this; }
|
||||
//virtual bool IsValueType() override { return mTypeDef->mTypeCode != BfTypeCode_None; }
|
||||
//virtual bool IsValueTypeOrValueTypePtr() override { return mTypeDef->mTypeCode != BfTypeCode_None; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue