summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/ltexlib.c4
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);