File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1028,9 +1028,9 @@ all_strings_promoter(PyObject *NPY_UNUSED(ufunc),
1028
1028
PyArray_DTypeMeta *const signature[],
1029
1029
PyArray_DTypeMeta *new_op_dtypes[])
1030
1030
{
1031
- if (op_dtypes[0 ] != &PyArray_StringDType &&
1032
- op_dtypes[1 ] != &PyArray_StringDType &&
1033
- op_dtypes[2 ] != &PyArray_StringDType) {
1031
+ if (( op_dtypes[0 ] != &PyArray_StringDType &&
1032
+ op_dtypes[1 ] != &PyArray_StringDType &&
1033
+ op_dtypes[2 ] != &PyArray_StringDType) ) {
1034
1034
/*
1035
1035
* This promoter was triggered with only unicode arguments, so use
1036
1036
* unicode. This can happen due to `dtype=` support which sets the
@@ -1041,9 +1041,9 @@ all_strings_promoter(PyObject *NPY_UNUSED(ufunc),
1041
1041
new_op_dtypes[2 ] = NPY_DT_NewRef (&PyArray_UnicodeDType);
1042
1042
return 0 ;
1043
1043
}
1044
- if (signature[0 ] == &PyArray_UnicodeDType &&
1045
- signature[1 ] == &PyArray_UnicodeDType &&
1046
- signature[2 ] == &PyArray_UnicodeDType) {
1044
+ if (( signature[0 ] == &PyArray_UnicodeDType &&
1045
+ signature[1 ] == &PyArray_UnicodeDType &&
1046
+ signature[2 ] == &PyArray_UnicodeDType) ) {
1047
1047
/* Unicode forced, but didn't override a string input: invalid */
1048
1048
return -1 ;
1049
1049
}
You can’t perform that action at this time.
0 commit comments