Skip to content

Commit

Permalink
Updated np.bool8 to np.bool_
Browse files Browse the repository at this point in the history
  • Loading branch information
wainejr authored and inducer committed Jan 10, 2023
1 parent 8bf1970 commit d4549d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def fill_registry_with_c_types(reg, respect_windows, include_bool=True):
if include_bool:
# bool is of unspecified size in the OpenCL spec and may in fact be
# 4-byte.
reg.get_or_register_dtype("bool", np.bool8)
reg.get_or_register_dtype("bool", np.bool_)

reg.get_or_register_dtype(["signed char", "char"], np.int8)
reg.get_or_register_dtype("unsigned char", np.uint8)
Expand Down Expand Up @@ -181,7 +181,7 @@ def fill_registry_with_opencl_c_types(reg):


def fill_registry_with_c99_stdint_types(reg):
reg.get_or_register_dtype("bool", np.bool8)
reg.get_or_register_dtype("bool", np.bool_)

reg.get_or_register_dtype("int8_t", np.int8)
reg.get_or_register_dtype("uint8_t", np.uint8)
Expand Down

0 comments on commit d4549d4

Please sign in to comment.