summaryrefslogtreecommitdiff
path: root/py/objint.c
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2020-08-04 10:59:31 -0500
committerJeff Epler <jepler@gmail.com>2020-08-04 14:45:45 -0500
commitc37a25f0e5d1c877909855f6a3294e43b854bbbd (patch)
tree14c0cae44c69847fd94504f110f1ebc86883031c /py/objint.c
parent92917b84f1a173a06d337d82a7a5568f680ff268 (diff)
Use qstrs to save an additional 4 bytes
Diffstat (limited to 'py/objint.c')
-rw-r--r--py/objint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objint.c b/py/objint.c
index 7726fb8d8..b12bb3995 100644
--- a/py/objint.c
+++ b/py/objint.c
@@ -141,9 +141,9 @@ STATIC mp_fp_as_int_class_t mp_classify_fp_as_int(mp_float_t val) {
mp_obj_t mp_obj_new_int_from_float(mp_float_t val) {
int cl = fpclassify(val);
if (cl == FP_INFINITE) {
- mp_raise_OverflowError_varg(translate("can't convert %s to %s"), "inf", "int");
+ mp_raise_OverflowError_varg(translate("can't convert %q to %q"), MP_QSTR_inf, MP_QSTR_int);
} else if (cl == FP_NAN) {
- mp_raise_ValueError_varg(translate("can't convert %s to %s"), "NaN", "int");
+ mp_raise_ValueError_varg(translate("can't convert %q to %q"), MP_QSTR_NaN, MP_QSTR_int);
} else {
mp_fp_as_int_class_t icl = mp_classify_fp_as_int(val);
if (icl == MP_FP_CLASS_FIT_SMALLINT) {