[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: About luaH_setint
- From: 云风 Cloud Wu <cloudwu@...>
- Date: Tue, 22 Sep 2020 19:44:42 +0800
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