diff options
Diffstat (limited to 'src/lj_tab.c')
| -rw-r--r-- | src/lj_tab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_tab.c b/src/lj_tab.c index c63117fa4..f9dd541be 100644 --- a/src/lj_tab.c +++ b/src/lj_tab.c | |||
| @@ -145,9 +145,9 @@ GCtab *lj_tab_new(lua_State *L, uint32_t asize, uint32_t hbits) | |||
| 145 | } | 145 | } |
| 146 | 146 | ||
| 147 | /* The API of this function conforms to lua_createtable(). */ | 147 | /* The API of this function conforms to lua_createtable(). */ |
| 148 | GCtab *lj_tab_new_ah(lua_State *L, int32_t a, int32_t h) | 148 | GCtab *lj_tab_new_ah(lua_State *L, uint32_t a, uint32_t h) |
| 149 | { | 149 | { |
| 150 | return lj_tab_new(L, (uint32_t)(a > 0 ? a+1 : 0), hsize2hbits(h)); | 150 | return lj_tab_new(L, a ? a+1 : 0, hsize2hbits(h)); |
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | #if LJ_HASJIT | 153 | #if LJ_HASJIT |
