diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/builtin.c | 3 | ||||
-rw-r--r-- | Src/math.c | 3 | ||||
-rw-r--r-- | Src/utils.c | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index 42eca3e21..af2c24fd6 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -1745,7 +1745,8 @@ typeset_setbase(const char *name, Param pm, Options ops, int on, int always) return 1; } if (pm->base < 2 || pm->base > 36) { - zwarnnam(name, "invalid base: %d", pm->base); + zwarnnam(name, "invalid base (must be 2 to 36 inclusive): %d", + pm->base); return 1; } } else if (always) diff --git a/Src/math.c b/Src/math.c index 3374efddd..5b6941953 100644 --- a/Src/math.c +++ b/Src/math.c @@ -461,7 +461,8 @@ zzlex(void) if(*ptr != ']') goto bofs; if (outputradix < 2 || outputradix > 36) { - zerr("invalid base: %d", outputradix); + zerr("invalid base (must be 2 to 36 inclusive): %d", + outputradix); return EOI; } ptr++; diff --git a/Src/utils.c b/Src/utils.c index 6815f3cc4..19b5ab011 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -1844,7 +1844,7 @@ zstrtol(const char *s, char **t, int base) } inp = s; if (base < 2 || base > 36) { - zerr("invalid base: %d", base); + zerr("invalid base (must be 2 to 36 inclusive): %d", base); return (zlong)0; } else if (base <= 10) for (; *s >= '0' && *s < ('0' + base); s++) { |