Commits

Anonymous committed 06b0f17

Fixed a minor error stack corruption.

  • Participants
  • Parent commits 0546041
  • Branches pgreloaded

Comments (0)

Files changed (2)

src/base/basemod.c

         return 1;
     }
 failed:
+    PyErr_Clear ();
     PyErr_SetString (PyExc_TypeError,
         "object must be a Rect, FRect or 2-value sequence");
     return 0;
         return 1;
     }
 failed:
+    PyErr_Clear ();
     PyErr_SetString (PyExc_TypeError,
         "object must be a Rect, FRect or 2-value sequence");
     return 0;

src/sdl/videomod.c

     {
         PyObject *size;
         PyErr_Clear ();
-        if (!PyArg_ParseTuple (args, "0|il:set_mode", &size, &bpp, &flags))
+        if (!PyArg_ParseTuple (args, "O|il:set_mode", &size, &bpp, &flags))
             return NULL;
         if (!SizeFromObject (size, (pgint32*)&width, (pgint32*)&height))
             return NULL;