Skip to content

Commit

Permalink
Explictly specify type
Browse files Browse the repository at this point in the history
Was causing a build error, see https://bugzilla.redhat.com/show_bug.cgi?id=2248131

Patch provided by user Miro Hrončok in that bug report

See also:
* dsacre#30
  • Loading branch information
s0600204 committed Jan 2, 2025
1 parent a666ee4 commit ebbb255
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/liblo.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,12 @@ cdef int _msg_callback(const_char *path, const_char *types, lo_arg **argv,
elif t == 't': v = _timetag_to_double(argv[i].t)
elif t == 'b':
if PY_VERSION_HEX >= 0x03000000:
v = bytes(<unsigned char*>lo_blob_dataptr(argv[i]))
v = bytes(<unsigned char*>lo_blob_dataptr(<lo_blob>argv[i]))
else:
# convert binary data to python list
v = []
ptr = <unsigned char*>lo_blob_dataptr(argv[i])
size = lo_blob_datasize(argv[i])
ptr = <unsigned char*>lo_blob_dataptr(<lo_blob>argv[i])
size = lo_blob_datasize(<lo_blob>argv[i])
for j from 0 <= j < size:
v.append(ptr[j])
else:
Expand Down

0 comments on commit ebbb255

Please sign in to comment.