mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Temporary fix for Python 3 compilation error
This commit is contained in:
parent
162786ae3b
commit
778b4390f4
@ -3234,14 +3234,9 @@ write_function_instance(ostream &out, InterfaceMaker::Object *obj,
|
|||||||
++num_params;
|
++num_params;
|
||||||
|
|
||||||
} else if (TypeManager::is_integer(type)) {
|
} else if (TypeManager::is_integer(type)) {
|
||||||
if (args_type == AT_single_arg) {
|
indent(out, indent_level) << "int " << param_name << ";\n";
|
||||||
pexpr_string = "(" + type->get_local_name(&parser) + ")PyInt_AS_LONG(arg)";
|
format_specifiers += "i";
|
||||||
extra_param_check += " && PyInt_Check(arg)";
|
parameter_list += ", &" + param_name;
|
||||||
} else {
|
|
||||||
indent(out, indent_level) << "int " << param_name << ";\n";
|
|
||||||
format_specifiers += "i";
|
|
||||||
parameter_list += ", &" + param_name;
|
|
||||||
}
|
|
||||||
expected_params += "int";
|
expected_params += "int";
|
||||||
only_pyobjects = false;
|
only_pyobjects = false;
|
||||||
++num_params;
|
++num_params;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user