1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Fixed float const writing

This commit is contained in:
Brian Fiete 2025-03-11 14:26:14 -04:00
parent ba558394f1
commit a332f723d7

View file

@ -1953,6 +1953,11 @@ void BeCOFFObject::WriteConst(BeCOFFSection& sect, BeConstant* constVal)
sizeLeft -= writeSize;
}
}
else if (beType->mTypeCode == BeTypeCode_Float)
{
float f = constVal->mDouble;
sect.mData.Write((void*)&f, sizeof(float));
}
else
{
sect.mData.Write((void*)&constVal->mInt64, beType->mSize);