Skip to content
Snippets Groups Projects
Commit 319672e4 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix signed char arg parsing. (fix by Frédéric Bastien)

parent 40486a4c
No related branches found
No related tags found
No related merge requests found
...@@ -232,7 +232,7 @@ def parse_c_arg(c_arg): ...@@ -232,7 +232,7 @@ def parse_c_arg(c_arg):
dtype = np.uint64 dtype = np.uint64
elif tp in ["short", "short int"]: dtype = np.int16 elif tp in ["short", "short int"]: dtype = np.int16
elif tp in ["unsigned short", "unsigned short int"]: dtype = np.uint16 elif tp in ["unsigned short", "unsigned short int"]: dtype = np.uint16
elif tp in ["char"]: dtype = np.int8 elif tp in ["char", "signed char"]: dtype = np.int8
elif tp in ["unsigned char"]: dtype = np.uint8 elif tp in ["unsigned char"]: dtype = np.uint8
elif tp in ["bool"]: dtype = np.bool elif tp in ["bool"]: dtype = np.bool
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment