lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


https://github.com/lua/lua/blob/master/ltable.h#L40

LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key,
         TValue *value);
--------^

I think it can be `const TValue *` here , just like `luaH_set` .

LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key,
         const TValue *value);

-- 
http://blog.codingnow.com