aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ltests.c b/ltests.c
index ce2b20ca..6ae5f472 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1302,7 +1302,7 @@ static int doonnewstack (lua_State *L) {
1302 lua_State *L1 = lua_newthread(L); 1302 lua_State *L1 = lua_newthread(L);
1303 size_t l; 1303 size_t l;
1304 const char *s = luaL_checklstring(L, 1, &l); 1304 const char *s = luaL_checklstring(L, 1, &l);
1305 int status = luaL_loadbuffer(L1, s, l, s); 1305 int status = luaL_loadbufferx(L1, s, l, s, "t");
1306 if (status == LUA_OK) 1306 if (status == LUA_OK)
1307 status = lua_pcall(L1, 0, 0, 0); 1307 status = lua_pcall(L1, 0, 0, 0);
1308 lua_pushinteger(L, status); 1308 lua_pushinteger(L, status);
@@ -1382,7 +1382,7 @@ static int doremote (lua_State *L) {
1382 const char *code = luaL_checklstring(L, 2, &lcode); 1382 const char *code = luaL_checklstring(L, 2, &lcode);
1383 int status; 1383 int status;
1384 lua_settop(L1, 0); 1384 lua_settop(L1, 0);
1385 status = luaL_loadbuffer(L1, code, lcode, code); 1385 status = luaL_loadbufferx(L1, code, lcode, code, "t");
1386 if (status == LUA_OK) 1386 if (status == LUA_OK)
1387 status = lua_pcall(L1, 0, LUA_MULTRET, 0); 1387 status = lua_pcall(L1, 0, LUA_MULTRET, 0);
1388 if (status != LUA_OK) { 1388 if (status != LUA_OK) {
@@ -1738,7 +1738,7 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) {
1738 lua_pushinteger(L1, luaL_len(L1, getindex)); 1738 lua_pushinteger(L1, luaL_len(L1, getindex));
1739 } 1739 }
1740 else if EQ("loadfile") { 1740 else if EQ("loadfile") {
1741 luaL_loadfile(L1, luaL_checkstring(L1, getnum)); 1741 luaL_loadfilex(L1, luaL_checkstring(L1, getnum), "t");
1742 } 1742 }
1743 else if EQ("loadstring") { 1743 else if EQ("loadstring") {
1744 size_t slen; 1744 size_t slen;