From 778b4390f46c9f7cf0fda7db70173067e99c53b3 Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 21 Sep 2014 13:37:32 +0000 Subject: [PATCH] Temporary fix for Python 3 compilation error --- dtool/src/interrogate/interfaceMakerPythonNative.cxx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/dtool/src/interrogate/interfaceMakerPythonNative.cxx b/dtool/src/interrogate/interfaceMakerPythonNative.cxx index eb25546d83..931eb6cc47 100755 --- a/dtool/src/interrogate/interfaceMakerPythonNative.cxx +++ b/dtool/src/interrogate/interfaceMakerPythonNative.cxx @@ -3234,14 +3234,9 @@ write_function_instance(ostream &out, InterfaceMaker::Object *obj, ++num_params; } else if (TypeManager::is_integer(type)) { - if (args_type == AT_single_arg) { - pexpr_string = "(" + type->get_local_name(&parser) + ")PyInt_AS_LONG(arg)"; - extra_param_check += " && PyInt_Check(arg)"; - } else { - indent(out, indent_level) << "int " << param_name << ";\n"; - format_specifiers += "i"; - parameter_list += ", &" + param_name; - } + indent(out, indent_level) << "int " << param_name << ";\n"; + format_specifiers += "i"; + parameter_list += ", &" + param_name; expected_params += "int"; only_pyobjects = false; ++num_params;