From 0ce7215ee902bb11410122d959b3b8020c884fcb Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 12 Mar 2024 15:10:14 +0100 Subject: [PATCH] interrogate: Fix typo in code Fixes #1627 [skip ci] --- dtool/src/interrogate/interfaceMakerPythonNative.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtool/src/interrogate/interfaceMakerPythonNative.cxx b/dtool/src/interrogate/interfaceMakerPythonNative.cxx index 163ece8030..0606965fa3 100644 --- a/dtool/src/interrogate/interfaceMakerPythonNative.cxx +++ b/dtool/src/interrogate/interfaceMakerPythonNative.cxx @@ -3814,7 +3814,7 @@ write_function_for_name(ostream &out, Object *obj, // None of the remaps take any keyword arguments, so let's check that // we take none. This saves some checks later on. indent(out, 4) << "if (kwds == nullptr || PyDict_GET_SIZE(kwds) == 0) {\n"; - if (min_args == 1 && min_args == 1) { + if (min_args == 1 && max_args == 1) { indent(out, 4) << " PyObject *arg = PyTuple_GET_ITEM(args, 0);\n"; always_returns = write_function_forset(out, mii->second, min_args, max_args, expected_params, 6,