diff options
| author | Mike Pall <mike> | 2026-05-25 01:28:32 +0200 |
|---|---|---|
| committer | Mike Pall <mike> | 2026-05-25 01:28:32 +0200 |
| commit | 8f421c81ec6aaae0bcd80e01f4353de200afbbc5 (patch) | |
| tree | 6c640a8bb72a3ba5821780974bb5fda75021a378 /src/lj_api.c | |
| parent | 5c12243677d2bb97974d634ff172570cea2a37dc (diff) | |
| download | luajit-8f421c81ec6aaae0bcd80e01f4353de200afbbc5.tar.gz luajit-8f421c81ec6aaae0bcd80e01f4353de200afbbc5.tar.bz2 luajit-8f421c81ec6aaae0bcd80e01f4353de200afbbc5.zip | |
Prevent sanitizer warnings for lj_tab_new*() and table.new().
Reported by Sergey Bronnikov. #1458
Diffstat (limited to 'src/lj_api.c')
| -rw-r--r-- | src/lj_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_api.c b/src/lj_api.c index 6369c17db..f972a760b 100644 --- a/src/lj_api.c +++ b/src/lj_api.c | |||
| @@ -708,7 +708,7 @@ LUA_API void lua_pushlightuserdata(lua_State *L, void *p) | |||
| 708 | LUA_API void lua_createtable(lua_State *L, int narray, int nrec) | 708 | LUA_API void lua_createtable(lua_State *L, int narray, int nrec) |
| 709 | { | 709 | { |
| 710 | lj_gc_check(L); | 710 | lj_gc_check(L); |
| 711 | settabV(L, L->top, lj_tab_new_ah(L, narray, nrec)); | 711 | settabV(L, L->top, lj_tab_new_ah(L, (uint32_t)narray, (uint32_t)nrec)); |
| 712 | incr_top(L); | 712 | incr_top(L); |
| 713 | } | 713 | } |
| 714 | 714 | ||
