Skip to content

Commit

Permalink
Rollback of #231
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 694235313
  • Loading branch information
The ml_dtypes Authors committed Nov 7, 2024
1 parent e89cc9d commit 46430e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ml_dtypes/_src/custom_float.h
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ PyArray_DescrProto GetCustomFloatDescrProto() {
/*kind=*/TypeDescriptor<T>::kNpyDescrKind,
/*type=*/TypeDescriptor<T>::kNpyDescrType,
/*byteorder=*/TypeDescriptor<T>::kNpyDescrByteorder,
/*flags=*/NPY_USE_SETITEM,
/*flags=*/NPY_NEEDS_PYAPI | NPY_USE_SETITEM,
/*type_num=*/0,
/*elsize=*/sizeof(T),
/*alignment=*/alignof(T),
Expand Down
2 changes: 1 addition & 1 deletion ml_dtypes/_src/intn_numpy.h
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ PyArray_DescrProto GetIntNDescrProto() {
/*kind=*/TypeDescriptor<T>::kNpyDescrKind,
/*type=*/TypeDescriptor<T>::kNpyDescrType,
/*byteorder=*/TypeDescriptor<T>::kNpyDescrByteorder,
/*flags=*/NPY_USE_SETITEM,
/*flags=*/NPY_NEEDS_PYAPI | NPY_USE_SETITEM,
/*type_num=*/0,
/*elsize=*/sizeof(T),
/*alignment=*/alignof(T),
Expand Down

0 comments on commit 46430e6

Please sign in to comment.