use Py_ssize_t rather than int when dealing with list sizes (original patch from...
[blender.git] / source / blender / python / intern / bpy_rna.c
index d10c8c843e8cd654bfa2aeda1162cb2d5def2e01..2212499d842e439bb7ee4fa322d15a161ce18416 100644 (file)
@@ -4608,7 +4608,7 @@ static PyObject *pyrna_func_call(BPy_FunctionRNA *self, PyObject *args, PyObject
 
 
 #ifdef DEBUG_STRING_FREE
-       // if(PyList_Size(string_free_ls)) printf("%.200s.%.200s():  has %d strings\n", RNA_struct_identifier(self_ptr->type), RNA_function_identifier(self_func), (int)PyList_Size(string_free_ls));
+       // if(PyList_GET_SIZE(string_free_ls)) printf("%.200s.%.200s():  has %d strings\n", RNA_struct_identifier(self_ptr->type), RNA_function_identifier(self_func), (int)PyList_GET_SIZE(string_free_ls));
        Py_DECREF(string_free_ls);
 #undef DEBUG_STRING_FREE
 #endif