diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2015-12-22 23:24:52 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2015-12-22 23:24:52 +0000 |
commit | 52f7652d80a0f526895dcaa69db05dae5492586d (patch) | |
tree | d70bf4c1a0083904c1d36ff27c937e991aff22bb | |
parent | cb8a83fc9297e35c683e724630f2b9b0a6bb1ed9 (diff) |
web2c/luatexdir: sync with the upstream
git-svn-id: svn://tug.org/texlive/trunk@39172 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/texk/web2c/luatexdir/lua/lnodelib.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lua/lnodelib.c b/Build/source/texk/web2c/luatexdir/lua/lnodelib.c index 03033273fa0..f13c557dec9 100644 --- a/Build/source/texk/web2c/luatexdir/lua/lnodelib.c +++ b/Build/source/texk/web2c/luatexdir/lua/lnodelib.c @@ -6409,7 +6409,11 @@ static int lua_nodelib_direct_getbox(lua_State * L) int k = direct_get_box_id(L, -1); direct_check_index_range(k, "getbox"); t = get_tex_box_register(k); - lua_pushinteger(L, t); + if (t == null) { + lua_pushnil(L); + } else { + lua_pushinteger(L, t); + } return 1; } |