mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 07:34:07 +00:00
Fix compiler warnings.
This commit is contained in:
parent
df7bb5bb72
commit
e03e5979c4
@ -480,7 +480,7 @@ static char *lj_strfmt_wfnum(SBuf *sb, SFormat sf, lua_Number n, char *p)
|
|||||||
if ((prec | (sf & STRFMT_F_ALT))) {
|
if ((prec | (sf & STRFMT_F_ALT))) {
|
||||||
/* Emit fractional part. */
|
/* Emit fractional part. */
|
||||||
p[1] = '.'; p += 2;
|
p[1] = '.'; p += 2;
|
||||||
prec -= (q - p); p = q; /* Account for the digits already emitted. */
|
prec -= (MSize)(q - p); p = q; /* Account for digits already emitted. */
|
||||||
/* Then emit chunks of 9 digits (this may emit 8 digits too many). */
|
/* Then emit chunks of 9 digits (this may emit 8 digits too many). */
|
||||||
for (i = ndhi; (int32_t)prec > 0 && i != ndlo; prec -= 9) {
|
for (i = ndhi; (int32_t)prec > 0 && i != ndlo; prec -= 9) {
|
||||||
i = (i - 1) & 0x3f;
|
i = (i - 1) & 0x3f;
|
||||||
|
@ -250,11 +250,11 @@
|
|||||||
|// Macros to clear or set tags.
|
|// Macros to clear or set tags.
|
||||||
|.macro cleartp, reg; shl reg, 17; shr reg, 17; .endmacro
|
|.macro cleartp, reg; shl reg, 17; shr reg, 17; .endmacro
|
||||||
|.macro settp, reg, tp
|
|.macro settp, reg, tp
|
||||||
| mov64 ITYPE, ((int64_t)tp<<47)
|
| mov64 ITYPE, ((uint64_t)tp<<47)
|
||||||
| or reg, ITYPE
|
| or reg, ITYPE
|
||||||
|.endmacro
|
|.endmacro
|
||||||
|.macro settp, dst, reg, tp
|
|.macro settp, dst, reg, tp
|
||||||
| mov64 dst, ((int64_t)tp<<47)
|
| mov64 dst, ((uint64_t)tp<<47)
|
||||||
| or dst, reg
|
| or dst, reg
|
||||||
|.endmacro
|
|.endmacro
|
||||||
|.macro setint, reg
|
|.macro setint, reg
|
||||||
|
Loading…
Reference in New Issue
Block a user