Skip to content

Commit

Permalink
Fix previous commit (#78)
Browse files Browse the repository at this point in the history
git-svn-id: http://abstrakraft.org/cwiid/svn/trunk@187 918edb2d-ff29-0410-9de2-eb38e7f22bc7
  • Loading branch information
abstrakraft committed Sep 29, 2009
1 parent c468969 commit 3f53085
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/Wiimote.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ static int

if (!self->wiimote) {
SET_CLOSED_ERROR;
return NULL;
return -1;
}

if (!PyCallable_Check(NewCallback)) {
Expand Down Expand Up @@ -616,7 +616,7 @@ static int Wiimote_set_led(Wiimote *self, PyObject *PyLed, void *closure)

if (!self->wiimote) {
SET_CLOSED_ERROR;
return NULL;
return -1;
}

if (((led = PyInt_AsLong(PyLed)) == -1) && PyErr_Occurred()) {
Expand All @@ -639,7 +639,7 @@ static int

if (!self->wiimote) {
SET_CLOSED_ERROR;
return NULL;
return -1;
}

if (((rumble = PyInt_AsLong(PyRumble)) == -1) && PyErr_Occurred()) {
Expand All @@ -662,7 +662,7 @@ static int

if (!self->wiimote) {
SET_CLOSED_ERROR;
return NULL;
return -1;
}

if (((rpt_mode = PyInt_AsLong(PyRptMode)) == -1) && PyErr_Occurred()) {
Expand Down

0 comments on commit 3f53085

Please sign in to comment.