diff options
author | Mike Pall <mike> | 2016-03-28 22:19:45 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2016-03-28 22:19:45 +0200 |
commit | e03e5979c4d17645a891187e0a1e43861114425b (patch) | |
tree | cda8874d8561e705a2922299bd473892e75c845c /src/lj_strfmt_num.c | |
parent | df7bb5bb7219cd9f3238a2a098e1846f5592e16f (diff) | |
download | luajit-e03e5979c4d17645a891187e0a1e43861114425b.tar.gz luajit-e03e5979c4d17645a891187e0a1e43861114425b.tar.bz2 luajit-e03e5979c4d17645a891187e0a1e43861114425b.zip |
Fix compiler warnings.
Diffstat (limited to 'src/lj_strfmt_num.c')
-rw-r--r-- | src/lj_strfmt_num.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_strfmt_num.c b/src/lj_strfmt_num.c index 79bc7610..04769258 100644 --- a/src/lj_strfmt_num.c +++ b/src/lj_strfmt_num.c | |||
@@ -480,7 +480,7 @@ static char *lj_strfmt_wfnum(SBuf *sb, SFormat sf, lua_Number n, char *p) | |||
480 | if ((prec | (sf & STRFMT_F_ALT))) { | 480 | if ((prec | (sf & STRFMT_F_ALT))) { |
481 | /* Emit fractional part. */ | 481 | /* Emit fractional part. */ |
482 | p[1] = '.'; p += 2; | 482 | p[1] = '.'; p += 2; |
483 | prec -= (q - p); p = q; /* Account for the digits already emitted. */ | 483 | prec -= (MSize)(q - p); p = q; /* Account for digits already emitted. */ |
484 | /* Then emit chunks of 9 digits (this may emit 8 digits too many). */ | 484 | /* Then emit chunks of 9 digits (this may emit 8 digits too many). */ |
485 | for (i = ndhi; (int32_t)prec > 0 && i != ndlo; prec -= 9) { | 485 | for (i = ndhi; (int32_t)prec > 0 && i != ndlo; prec -= 9) { |
486 | i = (i - 1) & 0x3f; | 486 | i = (i - 1) & 0x3f; |