Commits

Anonymous committed 1cdca3d

compiler cleanup

  • Participants
  • Parent commits 04f376e

Comments (0)

Files changed (2)

 
 
 /* macros used throughout the source */
-#define RAISE(x,y) (PyErr_SetString((x), (y)), NULL)
+#define RAISE(x,y) (PyErr_SetString((x), (y)), (PyObject*)NULL)
 #define RETURN_NONE return (Py_INCREF(Py_None), Py_None);
 #define PyType_Init(x) (((x).ob_type) = &PyType_Type)
 #define PYGAMEAPI_LOCAL_ENTRY "_PYGAME_C_API"
 	RWHelper* helper;
 
 	if(!obj)
-		return RAISE(PyExc_TypeError, "Invalid filetype object");
+		return (SDL_RWops*)RAISE(PyExc_TypeError, "Invalid filetype object");
 
 	if(PyString_Check(obj))
 		rw = SDL_RWFromFile(PyString_AsString(obj), "rb");