Skip to content

Commit 170014f

Browse files
Merge pull request #1 from jakeprobst/master
change type raw memory is stored in to unsigned
2 parents 4742aa1 + 6573493 commit 170014f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bbmod/src/lua_psolib.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ static std::string psolualib_read_wstr(int memory_address, int len) {
219219

220220
static sol::table psolualib_read_mem(sol::table t, int memory_address, int len) {
221221
sol::state_view lua(g_LuaState);
222-
char buf[8192];
222+
unsigned char buf[8192];
223223
memset(buf, 0, len);
224224
SIZE_T read;
225225
auto pid = GetCurrentProcess();
@@ -233,4 +233,4 @@ static sol::table psolualib_read_mem(sol::table t, int memory_address, int len)
233233
t.add((int)buf[i]);
234234
}
235235
return t;
236-
}
236+
}

0 commit comments

Comments
 (0)