About luaH_setint

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

About luaH_setint

云风 Cloud Wu
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