mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed float const aggregates
This commit is contained in:
parent
ac77923a33
commit
a94b52ff58
1 changed files with 7 additions and 3 deletions
|
@ -443,10 +443,14 @@ void BeConstant::GetData(Array<uint8>& data)
|
|||
for (int i = 0; i < type->mSize; i++)
|
||||
data.push_back(0); // Aggregate
|
||||
}
|
||||
else if (type->mTypeCode == BeTypeCode_Float)
|
||||
{
|
||||
float f = mDouble;
|
||||
data.Insert(data.mSize, (uint8*)&f, sizeof(float));
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < type->mSize; i++)
|
||||
data.push_back((&mUInt8)[i]);
|
||||
data.Insert(data.mSize, &mUInt8, type->mSize);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue