mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
whoops, c++-ism
This commit is contained in:
parent
da2f1cd9c9
commit
19e866c803
@ -61,6 +61,7 @@ py_extend_frozen_modules(PyObject *self, PyObject *args) {
|
|||||||
int num_elements;
|
int num_elements;
|
||||||
int i;
|
int i;
|
||||||
struct _frozen *new_modules;
|
struct _frozen *new_modules;
|
||||||
|
int total_count;
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(args, "O", &list)) {
|
if (!PyArg_ParseTuple(args, "O", &list)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -98,7 +99,7 @@ py_extend_frozen_modules(PyObject *self, PyObject *args) {
|
|||||||
|
|
||||||
Py_DECREF(list);
|
Py_DECREF(list);
|
||||||
|
|
||||||
int total_count = extend_frozen_modules(new_modules, num_elements);
|
total_count = extend_frozen_modules(new_modules, num_elements);
|
||||||
free(new_modules);
|
free(new_modules);
|
||||||
|
|
||||||
return Py_BuildValue("i", total_count);
|
return Py_BuildValue("i", total_count);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user