diff options
author | Mike Pall <mike> | 2021-06-01 00:45:06 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2021-06-01 00:45:06 +0200 |
commit | 394fb6267acba72ee984edcd331ad1bbde72056a (patch) | |
tree | 9c79314df37e41fd15fb30f148e96cb9ab1be3a9 /src/lib_table.c | |
parent | b5dafe58912a70a7b5780ebbea06fac744e08b3a (diff) | |
download | luajit-394fb6267acba72ee984edcd331ad1bbde72056a.tar.gz luajit-394fb6267acba72ee984edcd331ad1bbde72056a.tar.bz2 luajit-394fb6267acba72ee984edcd331ad1bbde72056a.zip |
String buffers, part 2a: internal SBuf reorg. Use full pointers.
Sponsored by fmad.io.
Diffstat (limited to 'src/lib_table.c')
-rw-r--r-- | src/lib_table.c | 2 |
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); |