Browse files

python wrapper: Explicitly cast freenect_device_flags to int

Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>
  • Loading branch information...
1 parent bac62d0 commit 2cfe5d9c4602d8a5cc921c1caa974795422bddcd @zarvox zarvox committed Jan 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 wrappers/python/freenect.pyx
View
2 wrappers/python/freenect.pyx
@@ -278,7 +278,7 @@ cpdef init():
# to both but haven't wrapped the python API for selecting subdevices yet.
# Also, we don't support audio in the python wrapper yet, so no sense claiming
# the device.
- freenect_select_subdevices(ctx, FREENECT_DEVICE_MOTOR | FREENECT_DEVICE_CAMERA)
+ freenect_select_subdevices(ctx, int(FREENECT_DEVICE_MOTOR | FREENECT_DEVICE_CAMERA))
cdef CtxPtr ctx_out
ctx_out = CtxPtr()
ctx_out._ptr = ctx

0 comments on commit 2cfe5d9

Please sign in to comment.