summaryrefslogtreecommitdiffstats
path: root/arith.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-06-06 23:11:13 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-06-06 23:11:13 -0700
commit61ee6b198b8fdeb21e259d1c94d92fe1d75a7bd8 (patch)
tree059d0c968813f1c8ac83f1f16cd7340f1304e66e /arith.c
parent6399a4cb2acc7eac30a8140dc1462269680f378a (diff)
downloadtxr-61ee6b198b8fdeb21e259d1c94d92fe1d75a7bd8.tar.gz
txr-61ee6b198b8fdeb21e259d1c94d92fe1d75a7bd8.tar.bz2
txr-61ee6b198b8fdeb21e259d1c94d92fe1d75a7bd8.zip
better error message for unum conversion.
* arith.c (c_unum): When the input value is negative, complain about that, not about uint_ptr_t, which means nothing in TXR Lisp.
Diffstat (limited to 'arith.c')
-rw-r--r--arith.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arith.c b/arith.c
index 62fdea53..7ebe0819 100644
--- a/arith.c
+++ b/arith.c
@@ -173,7 +173,7 @@ ucnum c_unum(val num)
return out;
}
range:
- uw_throwf(error_s, lit("~s is out of uint_ptr_t range"), num, nao);
+ uw_throwf(error_s, lit("~s given, non-negative expected"), num, nao);
default:
type_mismatch(lit("~s is not an integer"), num, nao);
}