1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Added support for bool in reflected attributes

This commit is contained in:
Brian Fiete 2020-08-23 07:43:16 -07:00
parent e5406250e3
commit 5c2e0d86c0
3 changed files with 14 additions and 6 deletions

View file

@ -5723,7 +5723,8 @@ BfIRValue BfModule::CreateTypeData(BfType* type, Dictionary<int, int>& usedStrin
PUSH_INT64(constant->mInt64);
}
else if ((constant->mTypeCode == BfTypeCode_Int32) ||
(constant->mTypeCode == BfTypeCode_UInt32))
(constant->mTypeCode == BfTypeCode_UInt32) ||
(constant->mTypeCode == BfTypeCode_Char32))
{
PUSH_INT32(constant->mInt32);
}
@ -5733,12 +5734,15 @@ BfIRValue BfModule::CreateTypeData(BfType* type, Dictionary<int, int>& usedStrin
PUSH_INT32(*(int*)&val);
}
else if ((constant->mTypeCode == BfTypeCode_Int16) ||
(constant->mTypeCode == BfTypeCode_UInt16))
(constant->mTypeCode == BfTypeCode_UInt16) ||
(constant->mTypeCode == BfTypeCode_Char16))
{
PUSH_INT16(constant->mInt16);
}
else if ((constant->mTypeCode == BfTypeCode_Int8) ||
(constant->mTypeCode == BfTypeCode_UInt8))
(constant->mTypeCode == BfTypeCode_UInt8) ||
(constant->mTypeCode == BfTypeCode_Boolean) ||
(constant->mTypeCode == BfTypeCode_Char8))
{
PUSH_INT8(constant->mInt8);
}