summaryrefslogtreecommitdiffstats
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
commit78ab340702d7b74a429c3e4cf7a0cbe7e63cb274 (patch)
tree059d0c968813f1c8ac83f1f16cd7340f1304e66e
parentabb4a04828112378ac31a77777fd58d25b1b734d (diff)
downloadtxr-78ab340702d7b74a429c3e4cf7a0cbe7e63cb274.tar.gz
txr-78ab340702d7b74a429c3e4cf7a0cbe7e63cb274.tar.bz2
txr-78ab340702d7b74a429c3e4cf7a0cbe7e63cb274.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.
-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);
}