diff options
Diffstat (limited to '')
-rw-r--r-- | src/lj_ffrecord.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_ffrecord.c b/src/lj_ffrecord.c index 60c1d84f..022de1aa 100644 --- a/src/lj_ffrecord.c +++ b/src/lj_ffrecord.c | |||
@@ -1117,7 +1117,7 @@ static LJ_AINLINE TRef recff_sbufx_len(jit_State *J, TRef trr, TRef trw) | |||
1117 | } | 1117 | } |
1118 | 1118 | ||
1119 | /* Emit typecheck for string buffer. */ | 1119 | /* Emit typecheck for string buffer. */ |
1120 | static TRef recff_sbufx_check(jit_State *J, RecordFFData *rd, int arg) | 1120 | static TRef recff_sbufx_check(jit_State *J, RecordFFData *rd, ptrdiff_t arg) |
1121 | { | 1121 | { |
1122 | TRef trtype, ud = J->base[arg]; | 1122 | TRef trtype, ud = J->base[arg]; |
1123 | if (!tvisbuf(&rd->argv[arg])) lj_trace_err(J, LJ_TRERR_BADTYPE); | 1123 | if (!tvisbuf(&rd->argv[arg])) lj_trace_err(J, LJ_TRERR_BADTYPE); |
@@ -1135,7 +1135,7 @@ static TRef recff_sbufx_write(jit_State *J, TRef ud) | |||
1135 | } | 1135 | } |
1136 | 1136 | ||
1137 | /* Check for integer in range for the buffer API. */ | 1137 | /* Check for integer in range for the buffer API. */ |
1138 | static TRef recff_sbufx_checkint(jit_State *J, RecordFFData *rd, int arg) | 1138 | static TRef recff_sbufx_checkint(jit_State *J, RecordFFData *rd, ptrdiff_t arg) |
1139 | { | 1139 | { |
1140 | TRef tr = J->base[arg]; | 1140 | TRef tr = J->base[arg]; |
1141 | TRef trlim = lj_ir_kint(J, LJ_MAX_BUF); | 1141 | TRef trlim = lj_ir_kint(J, LJ_MAX_BUF); |