From 98fa75e91145c22a6e351f53be638dd2b5430ea5 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Thu, 4 Nov 2021 10:09:25 -0700 Subject: [PATCH] Fix fallout from #114: T is the right thread to use --- CLI/Repl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CLI/Repl.cpp b/CLI/Repl.cpp index f57a500..4968d08 100644 --- a/CLI/Repl.cpp +++ b/CLI/Repl.cpp @@ -175,7 +175,7 @@ static std::string runCode(lua_State* L, const std::string& source) { error = "thread yielded unexpectedly"; } - else if (const char* str = lua_tostring(L, -1)) + else if (const char* str = lua_tostring(T, -1)) { error = str; }