Skip to content

Commit 7cd012a

Browse files
committed
Sync CPPClassMethod
1 parent 52f15be commit 7cd012a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CPPClassMethod.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ PyObject* CPyCppyy::CPPClassMethod::Call(CPPInstance*&
2424

2525
// translate the arguments
2626
#if PY_VERSION_HEX >= 0x03080000
27-
// TODO: The following is not robust and should be revisited e.g. by makeing CPPOverloads
27+
// TODO: The following is not robust and should be revisited e.g. by making CPPOverloads
2828
// that have only CPPClassMethods be true Python classmethods? Note that the original
2929
// implementation wasn't 100% correct either (e.g. static size() mapped to len()).
3030
//
@@ -35,7 +35,7 @@ PyObject* CPyCppyy::CPPClassMethod::Call(CPPInstance*&
3535
if ((!self || (PyObject*)self == Py_None) && nargs) {
3636
PyObject* arg0 = CPyCppyy_PyArgs_GET_ITEM(args, 0);
3737
if ((CPPInstance_Check(arg0) && ((CPPInstance*)arg0)->ObjectIsA() == GetScope()) && \
38-
(fArgsRequired <= nargs-1) && (GetMaxArgs() < nargs)) {
38+
(fArgsRequired <= nargs-1)) {
3939
args += 1; // drops first argument
4040
nargsf -= 1;
4141
}

0 commit comments

Comments
 (0)