1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Name comparison fix

This commit is contained in:
Brian Fiete 2021-02-08 05:04:14 -08:00
parent 3da1881c9b
commit 4592044436

View file

@ -842,7 +842,7 @@ BfMethodDef* BfTypeDef::GetMethodByName(const StringImpl& name, int paramCount)
auto methodDef = (BfMethodDef*)entry->mMemberDef; auto methodDef = (BfMethodDef*)entry->mMemberDef;
while (methodDef != NULL) while (methodDef != NULL)
{ {
if ((name == methodDef->mName) && ((paramCount == -1) || (paramCount == (int)methodDef->mParams.size()))) if (((paramCount == -1) || (paramCount == (int)methodDef->mParams.size())))
{ {
if ((bestMethodDef == NULL) || if ((bestMethodDef == NULL) ||
((bestMethodDef->mDeclaringType->IsExtension()) && (!methodDef->mDeclaringType->IsExtension()))) ((bestMethodDef->mDeclaringType->IsExtension()) && (!methodDef->mDeclaringType->IsExtension())))