diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-06-06 23:11:13 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-06-06 23:11:13 -0700 |
commit | 61ee6b198b8fdeb21e259d1c94d92fe1d75a7bd8 (patch) | |
tree | 059d0c968813f1c8ac83f1f16cd7340f1304e66e /arith.c | |
parent | 6399a4cb2acc7eac30a8140dc1462269680f378a (diff) | |
download | txr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |