aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lj_strfmt_num.c2
-rw-r--r--src/vm_x64.dasc4
2 files changed, 3 insertions, 3 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;
diff --git a/src/vm_x64.dasc b/src/vm_x64.dasc
index a6b6853e..63ed2cb7 100644
--- a/src/vm_x64.dasc
+++ b/src/vm_x64.dasc
@@ -250,11 +250,11 @@
250|// Macros to clear or set tags. 250|// Macros to clear or set tags.
251|.macro cleartp, reg; shl reg, 17; shr reg, 17; .endmacro 251|.macro cleartp, reg; shl reg, 17; shr reg, 17; .endmacro
252|.macro settp, reg, tp 252|.macro settp, reg, tp
253| mov64 ITYPE, ((int64_t)tp<<47) 253| mov64 ITYPE, ((uint64_t)tp<<47)
254| or reg, ITYPE 254| or reg, ITYPE
255|.endmacro 255|.endmacro
256|.macro settp, dst, reg, tp 256|.macro settp, dst, reg, tp
257| mov64 dst, ((int64_t)tp<<47) 257| mov64 dst, ((uint64_t)tp<<47)
258| or dst, reg 258| or dst, reg
259|.endmacro 259|.endmacro
260|.macro setint, reg 260|.macro setint, reg