mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed default parameters requiring conversion operators
This commit is contained in:
parent
5a63fec168
commit
7458a90b5b
7 changed files with 98 additions and 61 deletions
|
@ -573,12 +573,12 @@ BfIRValue BfIRConstHolder::CreateConst(BfConstant* fromConst, BfIRConstHolder* f
|
|||
}
|
||||
return CreateConstArray(constArray->mType, copiedVals);
|
||||
}
|
||||
else if ((IsInt(fromConst->mTypeCode)) || (fromConst->mTypeCode == BfTypeCode_Boolean))
|
||||
else if ((IsInt(fromConst->mTypeCode)) || (fromConst->mTypeCode == BfTypeCode_Boolean) || (fromConst->mTypeCode == BfTypeCode_StringId))
|
||||
{
|
||||
return CreateConst(fromConst->mTypeCode, fromConst->mUInt64);
|
||||
}
|
||||
else if ((fromConst->mTypeCode == BfTypeCode_Single) || (fromConst->mTypeCode == BfTypeCode_Double))
|
||||
{
|
||||
{
|
||||
return CreateConst(fromConst->mTypeCode, fromConst->mDouble);
|
||||
}
|
||||
else if (fromConst->mTypeCode == BfTypeCode_NullPtr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue