1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-06 16:25:59 +02:00

Linux fix?

This commit is contained in:
Brian Fiete 2024-02-13 11:09:03 -05:00
parent d341104a57
commit 531afe8941

View file

@ -3557,22 +3557,22 @@ BfUnaryOp BfTokenToUnaryOp(BfToken token);
BfAssignmentOp BfTokenToAssignmentOp(BfToken token); BfAssignmentOp BfTokenToAssignmentOp(BfToken token);
bool BfIsCommentBlock(BfCommentKind commentKind); bool BfIsCommentBlock(BfCommentKind commentKind);
NS_BF_END
template<> template<>
struct BeefHash<Beefy::BfVariant> struct BeefHash<Beefy::BfVariant>
{ {
size_t operator()(const Beefy::BfVariant& val) const size_t operator()(const Beefy::BfVariant& val) const
{ {
if (val.mTypeCode == BfTypeCode_Struct) if (val.mTypeCode == Beefy::BfTypeCode_Struct)
{ {
BfVariant::StructData* structData = (Beefy::BfVariant::StructData*)val.mPtr; Beefy::BfVariant::StructData* structData = (Beefy::BfVariant::StructData*)val.mPtr;
return HashBytes(structData->mData, structData->mSize); return HashBytes(structData->mData, structData->mSize);
} }
return (size_t)val.mUInt64; return (size_t)val.mUInt64;
} }
}; };
NS_BF_END
namespace std namespace std
{ {
template<> template<>