Skip to content

Commit df0e261

Browse files
authored
Merge pull request #27484 from ngoldbaum/use-weak-default
BUG: initialize the promotion state to be weak
2 parents fa61bc6 + 9700020 commit df0e261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/_core/src/multiarray/convert_datatype.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
*/
5050
NPY_NO_EXPORT npy_intp REQUIRED_STR_LEN[] = {0, 3, 5, 10, 10, 20, 20, 20, 20};
5151

52-
static NPY_TLS int npy_promotion_state = NPY_USE_LEGACY_PROMOTION;
52+
static NPY_TLS int npy_promotion_state = NPY_USE_WEAK_PROMOTION;
5353

5454
NPY_NO_EXPORT int
5555
get_npy_promotion_state() {

0 commit comments

Comments
 (0)