Skip to content

Commit

Permalink
Bugfix: return 1 after doing conversions of boolean in py_convert
Browse files Browse the repository at this point in the history
  • Loading branch information
dmcooke committed May 7, 2009
1 parent 40f94dd commit ebe33f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pythoninlua.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@ int py_convert(lua_State *L, PyObject *o, int withnone)
}
} else if (o == Py_True) {
lua_pushboolean(L, 1);
ret = 1;
} else if (o == Py_False) {
lua_pushboolean(L, 0);
ret = 1;
} else if (PyString_Check(o)) {
char *s;
Py_ssize_t len;
Expand Down

0 comments on commit ebe33f1

Please sign in to comment.