aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-10-09 11:29:21 +0200
committerChristian Clason <c.clason@uni-graz.at>2023-10-09 12:37:15 +0200
commit307a7abf86c439177910d05003a81ea4a13d2650 (patch)
tree988ab3c9ce7b34d6a8387146683dd34afdc40048
parent139e6f68f937b9efcadf2709ee1c83213d3266fa (diff)
downloadrneovim-307a7abf86c439177910d05003a81ea4a13d2650.tar.gz
rneovim-307a7abf86c439177910d05003a81ea4a13d2650.tar.bz2
rneovim-307a7abf86c439177910d05003a81ea4a13d2650.zip
build(deps): bump libmpack-lua to 1.0.11
update vendored libmpack-lua to match https://github.com/libmpack/libmpack-lua/releases/tag/1.0.11
-rw-r--r--src/mpack/lmpack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mpack/lmpack.c b/src/mpack/lmpack.c
index 957bac37cc..3c7108a337 100644
--- a/src/mpack/lmpack.c
+++ b/src/mpack/lmpack.c
@@ -233,7 +233,7 @@ static mpack_uint32_t lmpack_objlen(lua_State *L, int *is_array)
while (lua_next(L, -2)) {
lua_pop(L, 1); /* pop value */
isarr = isarr
- && lua_isnumber(L, -1) /* lua number */
+ && lua_type(L, -1) == LUA_TNUMBER /* lua number */
&& (n = lua_tonumber(L, -1)) > 0 /* greater than 0 */
&& (size_t)n == n; /* and integer */
max = isarr && (size_t)n > max ? (size_t)n : max;