Skip to content

Commit

Permalink
Fix the compilation error reported in issue #41.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurPV committed Feb 24, 2024
1 parent ffa7fcb commit 4e8ae58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lua/lua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Canvas*>(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<Canvas*>(gui)->l_tft.fillRect<uint32_t>(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
Expand Down

0 comments on commit 4e8ae58

Please sign in to comment.