aboutsummaryrefslogtreecommitdiff
path: root/src/lib_table.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib_table.c b/src/lib_table.c
index 63a6a4c6..0214bb40 100644
--- a/src/lib_table.c
+++ b/src/lib_table.c
@@ -159,7 +159,7 @@ LJLIB_CF(table_concat) LJLIB_REC(.)
159 SBuf *sb = lj_buf_tmp_(L); 159 SBuf *sb = lj_buf_tmp_(L);
160 SBuf *sbx = lj_buf_puttab(sb, t, sep, i, e); 160 SBuf *sbx = lj_buf_puttab(sb, t, sep, i, e);
161 if (LJ_UNLIKELY(!sbx)) { /* Error: bad element type. */ 161 if (LJ_UNLIKELY(!sbx)) { /* Error: bad element type. */
162 int32_t idx = (int32_t)(intptr_t)sbufP(sb); 162 int32_t idx = (int32_t)(intptr_t)sb->w;
163 cTValue *o = lj_tab_getint(t, idx); 163 cTValue *o = lj_tab_getint(t, idx);
164 lj_err_callerv(L, LJ_ERR_TABCAT, 164 lj_err_callerv(L, LJ_ERR_TABCAT,
165 lj_obj_itypename[o ? itypemap(o) : ~LJ_TNIL], idx); 165 lj_obj_itypename[o ? itypemap(o) : ~LJ_TNIL], idx);