SeqEvent_set_time() has fallen victim to the inverted get_long1() return
value here, erroring out when called with actual integers.
Closes: https://github.com/alsa-project/alsa-python/pull/17
Signed-off-by: Ernestas Kulik <ernestas@baltic.engineering>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
PyObject *val) {
long lval = 0;
const int is_float = PyFloat_Check(val);
- const int is_int = is_float ? 0 : get_long1(val, &lval);
+ const int is_int = is_float ? 0 : !get_long1(val, &lval);
if (!(is_int || is_float)) {
PyErr_Format(PyExc_TypeError,