diff options
author | Peter Stephenson <pws@zsh.org> | 2014-11-26 17:26:58 +0000 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2014-11-26 17:26:58 +0000 |
commit | a8927bf27b57a1f49d525f628a97de9c1fce710b (patch) | |
tree | 909779151c4a6b93822e69fe0faff133ea66e7d9 /Src/utils.c | |
parent | c4110f7f4eac347fdbce71c286659a77beb138f7 (diff) | |
download | zsh-a8927bf27b57a1f49d525f628a97de9c1fce710b.tar.gz zsh-a8927bf27b57a1f49d525f628a97de9c1fce710b.tar.xz zsh-a8927bf27b57a1f49d525f628a97de9c1fce710b.zip |
33793: add 0b binary interpretation to integer constants
Diffstat (limited to 'Src/utils.c')
-rw-r--r-- | Src/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/utils.c b/Src/utils.c index c6e7aed35..5f0c1062b 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -2082,6 +2082,8 @@ zstrtol_underscore(const char *s, char **t, int base, int underscore) base = 10; else if (*++s == 'x' || *s == 'X') base = 16, s++; + else if (*s == 'b' || *s == 'B') + base = 2, s++; else base = 8; } |