Skip to content

Commit

Permalink
fix c_ubyte
Browse files Browse the repository at this point in the history
  • Loading branch information
kived committed Jan 31, 2016
1 parent f9618ce commit 4b30acf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyobjus/pyobjus_types.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ cdef class CArray:
arr_cast = ctypes.cast(ptr, ctypes.POINTER(ctypes.c_ulong))
if str(of_type) == "Q": # ulonglong
arr_cast = ctypes.cast(ptr, ctypes.POINTER(ctypes.c_ulonglong))
if str(of_type) == "C": # uchar
arr_cast = ctypes.cast(ptr, ctypes.POINTER(ctypes.c_uchar))
if str(of_type) == "C": # ubyte (uchar)
arr_cast = ctypes.cast(ptr, ctypes.POINTER(ctypes.c_ubyte))
if str(of_type) == "B": # bool
arr_cast = ctypes.cast(ptr, ctypes.POINTER(ctypes.c_bool))
if str(of_type) == "v": # void
Expand Down

0 comments on commit 4b30acf

Please sign in to comment.