about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-06-10 08:50:35 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-06-10 08:50:35 +0000
commit1c29f641c6276b0bcb1db17a7d64dbb5cad50382 (patch)
treeb3f83edc6bb46c999d86f91ac85da97582eefaa5 /Src
parentdeab7d6642ad9353d81037e923c73b4e4897a751 (diff)
downloadzsh-1c29f641c6276b0bcb1db17a7d64dbb5cad50382.tar.gz
zsh-1c29f641c6276b0bcb1db17a7d64dbb5cad50382.tar.xz
zsh-1c29f641c6276b0bcb1db17a7d64dbb5cad50382.zip
Mikael: 25143: spelling corrections
25144: report supported bases
25139: fix number
Diffstat (limited to 'Src')
-rw-r--r--Src/builtin.c3
-rw-r--r--Src/math.c3
-rw-r--r--Src/utils.c2
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++) {