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:
parent
3da1881c9b
commit
4592044436
1 changed files with 1 additions and 1 deletions
|
@ -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())))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue