From 4e8ae5814dfa5fba8c64d8e2b0114332afa00d7e Mon Sep 17 00:00:00 2001 From: ArthurPV Date: Fri, 23 Feb 2024 22:55:36 -0500 Subject: [PATCH] Fix the compilation error reported in issue #41. --- src/lua/lua.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/lua.cpp b/src/lua/lua.cpp index 901afc3..ad53c73 100755 --- a/src/lua/lua.cpp +++ b/src/lua/lua.cpp @@ -527,7 +527,7 @@ int LuaInterpreter::fillRect(lua_State* L) { // Cast to derived class before doing anything switch (gui->getType()) { case GUI_TYPE::CANVAS_TYPE: - reinterpret_cast(gui)->l_tft.fillRect(lua_tointeger(L, 2), lua_tointeger(L, 3), lua_tointeger(L, 4), lua_tointeger(L, 5), lua_tointeger(L, 6)); + reinterpret_cast(gui)->l_tft.fillRect(lua_tointeger(L, 2), lua_tointeger(L, 3), lua_tointeger(L, 4), lua_tointeger(L, 5), lua_tointeger(L, 6)); break; default: break; // Nothing to do here