MINOR: hlua: fix return type for hlua_checkfunction() and hlua_checktable()
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 20 Mar 2023 17:36:08 +0000 (18:36 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 Apr 2023 06:58:17 +0000 (08:58 +0200)
commit9ee0d04770a96dcad77b457628a2130862976908
tree6144a9374871e2944e1071b312ece7f4362ea8fc
parentf8f8a2b872d10bb5fdedf2c92aed3013649e0e19
MINOR: hlua: fix return type for hlua_checkfunction() and hlua_checktable()

hlua_checktable() and hlua_checkfunction() both return the raw
value of luaL_ref() function call.
As luaL_ref() returns a signed int, both functions should return a signed
int as well to prevent any misuse of the returned reference value.
src/hlua.c