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:
parent
ba558394f1
commit
a332f723d7
1 changed files with 5 additions and 0 deletions
|
@ -1953,6 +1953,11 @@ void BeCOFFObject::WriteConst(BeCOFFSection& sect, BeConstant* constVal)
|
||||||
sizeLeft -= writeSize;
|
sizeLeft -= writeSize;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (beType->mTypeCode == BeTypeCode_Float)
|
||||||
|
{
|
||||||
|
float f = constVal->mDouble;
|
||||||
|
sect.mData.Write((void*)&f, sizeof(float));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sect.mData.Write((void*)&constVal->mInt64, beType->mSize);
|
sect.mData.Write((void*)&constVal->mInt64, beType->mSize);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue