1
0
forked from Mirror/wren

add() method is bound as static but bindForeignMethod responds to non-static

This commit is contained in:
Krzysztof Kowalczyk
2018-03-20 17:13:28 -07:00
committed by GitHub
parent 7612b6bc8c
commit bcc31e63a2

View File

@ -76,7 +76,7 @@ Something like:
{
if (strcmp(className, "Math") == 0)
{
if (!isStatic && strcmp(signature, "add(_,_)") == 0)
if (isStatic && strcmp(signature, "add(_,_)") == 0)
{
return mathAdd; // C function for Math.add(_,_).
}