Skip to content

Commit eacb0c9

Browse files
committed
fix some more translate()s
1 parent 8c444ef commit eacb0c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

code/ndarray_operators.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -863,19 +863,19 @@ mp_obj_t ndarray_binary_logical(ndarray_obj_t *lhs, ndarray_obj_t *rhs,
863863

864864
#if ULAB_SUPPORTS_COMPLEX
865865
if((lhs->dtype == NDARRAY_COMPLEX) || (rhs->dtype == NDARRAY_COMPLEX) || (lhs->dtype == NDARRAY_FLOAT) || (rhs->dtype == NDARRAY_FLOAT)) {
866-
mp_raise_TypeError(translate("operation not supported for the input types"));
866+
mp_raise_TypeError(MP_ERROR_TEXT("operation not supported for the input types"));
867867
}
868868
#else
869869
if((lhs->dtype == NDARRAY_FLOAT) || (rhs->dtype == NDARRAY_FLOAT)) {
870-
mp_raise_TypeError(translate("operation not supported for the input types"));
870+
mp_raise_TypeError(MP_ERROR_TEXT("operation not supported for the input types"));
871871
}
872872
#endif
873873

874874
// bail out, if both inputs are of 16-bit types, but differ in sign;
875875
// numpy promotes the result to int32
876876
if(((lhs->dtype == NDARRAY_INT16) && (rhs->dtype == NDARRAY_UINT16)) ||
877877
((lhs->dtype == NDARRAY_UINT16) && (rhs->dtype == NDARRAY_INT16))) {
878-
mp_raise_TypeError(translate("dtype of int32 is not supported"));
878+
mp_raise_TypeError(MP_ERROR_TEXT("dtype of int32 is not supported"));
879879
}
880880

881881
ndarray_obj_t *results = NULL;

0 commit comments

Comments
 (0)