Skip to content

Commit

Permalink
Merge pull request #27484 from ngoldbaum/use-weak-default
Browse files Browse the repository at this point in the history
BUG: initialize the promotion state to be weak
  • Loading branch information
charris authored Sep 30, 2024
2 parents fa61bc6 + 9700020 commit df0e261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/_core/src/multiarray/convert_datatype.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
*/
NPY_NO_EXPORT npy_intp REQUIRED_STR_LEN[] = {0, 3, 5, 10, 10, 20, 20, 20, 20};

static NPY_TLS int npy_promotion_state = NPY_USE_LEGACY_PROMOTION;
static NPY_TLS int npy_promotion_state = NPY_USE_WEAK_PROMOTION;

NPY_NO_EXPORT int
get_npy_promotion_state() {
Expand Down

0 comments on commit df0e261

Please sign in to comment.