diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-04-22 13:57:18 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-04-22 13:57:18 +0000 |
commit | c79003b0d567b2e600d9ddf3274bba9de0b00d7c (patch) | |
tree | 17307f441e59a325c8592a8f7d1c6fc19e0825ef /Build | |
parent | 0c49835f803d739acc34f5dda408eedb59d593fa (diff) |
web2c/luatexdir: sync with the upstream
git-svn-id: svn://tug.org/texlive/trunk@40679 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/lua/ltexlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lua/ltexlib.c b/Build/source/texk/web2c/luatexdir/lua/ltexlib.c index 84627b2dc3f..aa0e8c7e4b2 100644 --- a/Build/source/texk/web2c/luatexdir/lua/ltexlib.c +++ b/Build/source/texk/web2c/luatexdir/lua/ltexlib.c @@ -119,7 +119,7 @@ static int do_luacprint(lua_State * L, int partial, int deftable) } else { int i; for (i = startstrings; i <= n; i++) { - if (!lua_isstring(L,1)) { /* or number */ + if (!lua_isstring(L,i)) { /* or number */ luaL_error(L, "no string to print"); } luac_store(L, i, partial, cattable); @@ -226,7 +226,7 @@ static int luaccprint(lua_State * L) int i; int n = lua_gettop(L); for (i = 2; i <= n; i++) { - if (!lua_isstring(L,1)) { /* or number */ + if (!lua_isstring(L,i)) { /* or number */ luaL_error(L, "no string to print"); } luac_store(L, i, PARTIAL_LINE, cattable); |