Skip to content

Commit

Permalink
Clear Lua build warning messages (maybe)
Browse files Browse the repository at this point in the history
  • Loading branch information
MockbaTheBorg committed Jul 12, 2024
1 parent 42e9dbb commit 000b404
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RunCPM/abstraction_posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ uint8 _RunLuaScript(char* filename) {

uint8 fullpath[128] = FILEBASE;
strcat((char*)fullpath, (char*)filename);
int result = luaL_loadfile(L, fullpath);
int result = luaL_loadfile(L, (char*)fullpath);
if (result) {
_puts(lua_tostring(L, -1));
} else {
Expand Down
4 changes: 2 additions & 2 deletions RunCPM/abstraction_vstudio.h
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,8 @@ uint8 _RunLuaScript(char* filename) {
lua_register(L, "WriteReg", luaWriteReg);

uint8 fullpath[128] = FILEBASE;
strcat(fullpath, filename);
int result = luaL_loadfile(L, fullpath);
strcat((char*)fullpath, (char*)filename);
int result = luaL_loadfile(L, (char*)fullpath);
if (result) {
_puts(lua_tostring(L, -1));
} else {
Expand Down

0 comments on commit 000b404

Please sign in to comment.