diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2012-03-05 10:06:28 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2012-03-05 10:06:28 +0000 |
commit | 86f8e8de696404b85c334916bfe3d69bdd4291c6 (patch) | |
tree | a37c7c91bfe9f5b92bf574e56009ff86f49e3f0f /Src/glob.c | |
parent | 7614be7fe1b9a9692a6c8f5c5f471df3ef288366 (diff) | |
download | zsh-86f8e8de696404b85c334916bfe3d69bdd4291c6.tar.gz zsh-86f8e8de696404b85c334916bfe3d69bdd4291c6.tar.xz zsh-86f8e8de696404b85c334916bfe3d69bdd4291c6.zip |
30307 plus tweak suggsted by Wayne: use %lld for zlong when long long
Diffstat (limited to 'Src/glob.c')
-rw-r--r-- | Src/glob.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/glob.c b/Src/glob.c index 55983815f..d3ce73310 100644 --- a/Src/glob.c +++ b/Src/glob.c @@ -2148,7 +2148,11 @@ xpandbraces(LinkList list, LinkNode *np) for (; rend >= rstart; rend -= rincr) { /* Node added in at end, so do highest first */ p = dupstring(str3); +#if defined(ZLONG_IS_LONG_LONG) && defined(PRINTF_HAS_LLD) + sprintf(p + strp, "%0*lld", minw, rend); +#else sprintf(p + strp, "%0*ld", minw, (long)rend); +#endif strcat(p + strp, str2 + 1); insertlinknode(list, last, p); if (rev) /* decreasing: add in reverse order. */ |