about summary refs log tree commit diff
path: root/Src/math.c
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2000-05-15 18:48:21 +0000
committerClint Adams <clint@users.sourceforge.net>2000-05-15 18:48:21 +0000
commit195f1c4015b7219e81e7c376f06c9276106dcc84 (patch)
tree6cfc638eb3e08f2c55dfd1509c17d988b4ffa6fe /Src/math.c
parent18b193f241c6d4257a249b174283ba3148710349 (diff)
downloadzsh-195f1c4015b7219e81e7c376f06c9276106dcc84.tar.gz
zsh-195f1c4015b7219e81e7c376f06c9276106dcc84.tar.xz
zsh-195f1c4015b7219e81e7c376f06c9276106dcc84.zip
11387: OCTAL_ZEROES option
Diffstat (limited to 'Src/math.c')
-rw-r--r--Src/math.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/math.c b/Src/math.c
index 75f0106bb..a7fcd0978 100644
--- a/Src/math.c
+++ b/Src/math.c
@@ -357,7 +357,8 @@ zzlex(void)
 		yyval.u.l = zstrtol(++ptr, &ptr, lastbase = 16);
 		return NUM;
 	    }
-	    else if (idigit(*ptr) && (memchr(ptr, '.', strlen(ptr)) == NULL)) {
+	    else if (isset(OCTALZEROES) &&
+		    (memchr(ptr, '.', strlen(ptr)) == NULL)) {
 	        yyval.u.l = zstrtol(ptr, &ptr, lastbase = 8);
 	        return NUM;
 	    }