From 78ab340702d7b74a429c3e4cf7a0cbe7e63cb274 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 6 Jun 2017 23:11:13 -0700 Subject: 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. --- arith.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3