summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/lua/luanode.w
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/lua/luanode.w')
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/luanode.w2
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lua/luanode.w b/Build/source/texk/web2c/luatexdir/lua/luanode.w
index 39b68a68614..f901eddbfa9 100644
--- a/Build/source/texk/web2c/luatexdir/lua/luanode.w
+++ b/Build/source/texk/web2c/luatexdir/lua/luanode.w
@@ -180,7 +180,7 @@ int lua_appendtovlist_callback(halfword box, int location, halfword prev_depth,
return 0;
}
if (lua_type(Luas,-1) == LUA_TNUMBER) {
- *next_depth = lua_tointeger(Luas,-1);
+ *next_depth = lua_roundnumber(Luas,-1);
*prev_set = true;
if (lua_type(Luas, -2) != LUA_TNIL) {
p = check_isnode(Luas, -2);