mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
refactor
This commit is contained in:
parent
e06350915e
commit
925ef426de
6 changed files with 240 additions and 233 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue