Skip to content

Commit d61fde3

Browse files
committed
re-use an error message
1 parent 5fb191b commit d61fde3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/objint.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ mp_obj_t mp_obj_int_binary_op(mp_binary_op_t op, mp_obj_t lhs_in, mp_obj_t rhs_i
396396

397397
// This is called only with strings whose value doesn't fit in SMALL_INT
398398
mp_obj_t mp_obj_new_int_from_str_len(const char **str, size_t len, bool neg, unsigned int base) {
399-
mp_raise_msg(&mp_type_OverflowError, MP_ERROR_TEXT("long int not supported in this build"));
399+
mp_raise_msg(&mp_type_OverflowError, MP_ERROR_TEXT("small int overflow"));
400400
return mp_const_none;
401401
}
402402

0 commit comments

Comments
 (0)