summaryrefslogtreecommitdiffstats
path: root/arith.c
diff options
context:
space:
mode:
Diffstat (limited to 'arith.c')
-rw-r--r--arith.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arith.c b/arith.c
index d207579a..b90f79bc 100644
--- a/arith.c
+++ b/arith.c
@@ -1945,6 +1945,7 @@ val tofloat(val obj)
return obj;
case STR:
case LSTR:
+ case LIT:
return flo_str(obj);
default:
break;
@@ -1970,6 +1971,7 @@ val toint(val obj, val base)
return int_flo(obj);
case STR:
case LSTR:
+ case LIT:
return int_str(obj, base);
default:
break;