This commit is contained in:
holger krekel
2019-07-16 00:22:12 +02:00
parent 9dab53e0af
commit 8d99444c6a
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ def py_dc_callback(ctx, evt, data1, data2):
ret = callback(ctx, evt_name, data1, data2)
if ret is None:
ret = 0
assert isinstance(ret, int), repr(res)
assert isinstance(ret, int), repr(ret)
if event_sig_types & 4:
return ffi.cast('uintptr_t', ret)
elif event_sig_types & 8: