mac fix, needed to tell it yes, we'll never have a >32 bit offset for a member variable

typofix in tree. which...somehow compiled on windows anyway... will have to hunt that down..
This commit is contained in:
AzaezelX 2026-05-13 17:54:25 -05:00
parent c4948c38c9
commit fc8c3531cb
2 changed files with 3 additions and 3 deletions

View file

@ -1012,7 +1012,7 @@ public:
return EngineFieldTable::Field{ return EngineFieldTable::Field{
"elementCount", "", 1, "elementCount", "", 1,
TYPE(((ThisType*)16)->mState.mElementCount), TYPE(((ThisType*)16)->mState.mElementCount),
FIELDOFFSET(mState.mElementCount) static_cast<U32>(FIELDOFFSET(mState.mElementCount))
}; };
} }
else else
@ -1028,7 +1028,7 @@ public:
return EngineFieldTable::Field{ return EngineFieldTable::Field{
"arraySize", "", 1, "arraySize", "", 1,
TYPE(((ThisType*)16)->mState.mArraySize), TYPE(((ThisType*)16)->mState.mArraySize),
FIELDOFFSET(mState.mArraySize) static_cast<U32>(FIELDOFFSET(mState.mArraySize))
}; };
} }
else else

View file

@ -150,7 +150,7 @@ public:
} }
else else
{ {
const U32 n = getMin<U32>(children.size(), CHILD_COUNT); const U32 n = getMin(children.size(), CHILD_COUNT);
for (U32 i = 0; i < n; ++i) for (U32 i = 0; i < n; ++i)
{ {
(*this)[i] = children[i]; (*this)[i] = children[i];