--- py_ext/ming_wrap.c.orig 2017-04-07 08:12:56 UTC +++ py_ext/ming_wrap.c @@ -2424,7 +2424,7 @@ SWIG_Python_GetModule(void) { #ifdef SWIG_LINK_RUNTIME type_pointer = SWIG_ReturnGlobalTypeList((void *)0); #else - type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, + type_pointer = (void *) PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); if (PyErr_Occurred()) { PyErr_Clear(); @@ -2494,7 +2494,7 @@ SWIG_Python_SetModule(swig_module_info *swig_module) { PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table); #endif - PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); + PyObject *pointer = (PyObject *) PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); if (pointer && module) { PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); } else { @@ -2522,7 +2522,7 @@ SWIG_Python_TypeQuery(const char *type) swig_module_info *swig_module = SWIG_Python_GetModule(); descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); if (descriptor) { - obj = PyCObject_FromVoidPtr(descriptor, NULL); + obj = (PyObject *) PyCObject_FromVoidPtr(descriptor, NULL); PyDict_SetItem(cache, key, obj); Py_DECREF(obj); } @@ -3883,7 +3883,7 @@ SWIGINTERN PyObject *_wrap_newSWFInput_file(PyObject * PyErr_SetString(PyExc_TypeError, "Need a file!"); return NULL; } - arg1 = PyFile_AsFile(obj0); + arg1 = (FILE *) PyFile_AsFile(obj0); } result = newSWFInput_file(arg1); resultobj = SWIG_NewPointerObj((SWFInput *)memcpy((SWFInput *)malloc(sizeof(SWFInput)),&result,sizeof(SWFInput)), SWIGTYPE_p_SWFInput, SWIG_POINTER_OWN | 0 ); @@ -3905,7 +3905,7 @@ SWIGINTERN PyObject *_wrap_newSWFInput_stream(PyObject PyErr_SetString(PyExc_TypeError, "Need a file!"); return NULL; } - arg1 = PyFile_AsFile(obj0); + arg1 = (FILE *) PyFile_AsFile(obj0); } result = newSWFInput_stream(arg1); resultobj = SWIG_NewPointerObj((SWFInput *)memcpy((SWFInput *)malloc(sizeof(SWFInput)),&result,sizeof(SWFInput)), SWIGTYPE_p_SWFInput, SWIG_POINTER_OWN | 0 ); @@ -4299,7 +4299,7 @@ SWIGINTERN PyObject *_wrap_newSWFDBLBitmap(PyObject *S PyErr_SetString(PyExc_TypeError, "Need a file!"); return NULL; } - arg1 = PyFile_AsFile(obj0); + arg1 = (FILE *) PyFile_AsFile(obj0); } result = newSWFDBLBitmap(arg1); resultobj = SWIG_NewPointerObj((SWFDBLBitmap *)memcpy((SWFDBLBitmap *)malloc(sizeof(SWFDBLBitmap)),&result,sizeof(SWFDBLBitmap)), SWIGTYPE_p_SWFDBLBitmap, SWIG_POINTER_OWN | 0 ); @@ -4349,7 +4349,7 @@ SWIGINTERN PyObject *_wrap_newSWFJpegBitmap(PyObject * PyErr_SetString(PyExc_TypeError, "Need a file!"); return NULL; } - arg1 = PyFile_AsFile(obj0); + arg1 = (FILE *) PyFile_AsFile(obj0); } result = newSWFJpegBitmap(arg1); resultobj = SWIG_NewPointerObj((SWFJpegBitmap *)memcpy((SWFJpegBitmap *)malloc(sizeof(SWFJpegBitmap)),&result,sizeof(SWFJpegBitmap)), SWIGTYPE_p_SWFJpegBitmap, SWIG_POINTER_OWN | 0 ); @@ -4401,14 +4401,14 @@ SWIGINTERN PyObject *_wrap_newSWFJpegWithAlpha(PyObjec PyErr_SetString(PyExc_TypeError, "Need a file!"); return NULL; } - arg1 = PyFile_AsFile(obj0); + arg1 = (FILE *) PyFile_AsFile(obj0); } { if (!PyFile_Check(obj1)) { PyErr_SetString(PyExc_TypeError, "Need a file!"); return NULL; } - arg2 = PyFile_AsFile(obj1); + arg2 = (FILE *) PyFile_AsFile(obj1); } result = newSWFJpegWithAlpha(arg1,arg2); resultobj = SWIG_NewPointerObj((SWFJpegWithAlpha *)memcpy((SWFJpegWithAlpha *)malloc(sizeof(SWFJpegWithAlpha)),&result,sizeof(SWFJpegWithAlpha)), SWIGTYPE_p_SWFJpegWithAlpha, SWIG_POINTER_OWN | 0 ); @@ -7252,7 +7252,7 @@ SWIGINTERN PyObject *_wrap_newSWFSoundStream(PyObject PyErr_SetString(PyExc_TypeError, "Need a file!"); return NULL; } - arg1 = PyFile_AsFile(obj0); + arg1 = (FILE *) PyFile_AsFile(obj0); } result = (SWFSoundStream)newSWFSoundStream(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); @@ -7395,7 +7395,7 @@ SWIGINTERN PyObject *_wrap_newSWFSound(PyObject *SWIGU PyErr_SetString(PyExc_TypeError, "Need a file!"); return NULL; } - arg1 = PyFile_AsFile(obj0); + arg1 = (FILE *) PyFile_AsFile(obj0); } ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); if (!SWIG_IsOK(ecode2)) { @@ -8852,7 +8852,7 @@ SWIGINTERN PyObject *_wrap_newSWFVideoStream_fromFile( PyErr_SetString(PyExc_TypeError, "Need a file!"); return NULL; } - arg1 = PyFile_AsFile(obj0); + arg1 = (FILE *) PyFile_AsFile(obj0); } result = (SWFVideoStream)newSWFVideoStream_fromFile(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );