diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2017-01-18 02:33:19 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2017-01-18 02:35:55 +0100 |
commit | 57fec13e3afe43a4e903c9298bc0be147a01a118 (patch) | |
tree | efa55c6147e460fc8c42034f3ce509be7b387295 | |
parent | b368d1141558357236dc9973ea8f8515cb22912c (diff) | |
download | hex-57fec13e3afe43a4e903c9298bc0be147a01a118.tar.gz hex-57fec13e3afe43a4e903c9298bc0be147a01a118.tar.xz hex-57fec13e3afe43a4e903c9298bc0be147a01a118.zip |
Lua: fix __len for chunks
-rw-r--r-- | hex.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -911,7 +911,7 @@ app_lua_chunk_len (lua_State *L) { struct app_lua_chunk *self = luaL_checkudata (L, 1, XLUA_CHUNK_METATABLE); lua_pushinteger (L, self->len); - return 0; + return 1; } /// Create a new subchunk following Lua's string.sub() semantics. |