This commit is contained in:
MihailRis
2024-02-26 01:27:27 +03:00
parent e06350915e
commit 925ef426de
6 changed files with 240 additions and 233 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ int l_file_read_bytes(lua_State* L) {
lua_createtable(L, length, 0);
int newTable = lua_gettop(L);
for(int i = 0;i < length;i++) {
for(size_t i = 0; i < length; i++) {
lua_pushnumber(L, bytes[i]);
lua_rawseti(L, newTable, i+1);
}