mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-06 16:25:59 +02:00
Linux fix?
This commit is contained in:
parent
d341104a57
commit
531afe8941
1 changed files with 4 additions and 4 deletions
|
@ -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<>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue