Commit 2c02a37b authored by phcoder's avatar phcoder
Browse files

Fix memset

parent 1e3b2316
...@@ -844,7 +844,7 @@ namespace platform ...@@ -844,7 +844,7 @@ namespace platform
int32_t length = lua_tonumber(L, 3); int32_t length = lua_tonumber(L, 3);
if (length > 0) if (length > 0)
std::memset(machine->memory().base() + addr, 0, length); std::memset(machine->memory().base() + addr, value, length);
return 0; return 0;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment