From 62a186697df33c96dc1a6dac0f4dfc38652fb96f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Dec 2021 16:39:04 +0300 Subject: BYTE -> uint8_t --- plugins/MirLua/src/Modules/m_database.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/MirLua/src') diff --git a/plugins/MirLua/src/Modules/m_database.cpp b/plugins/MirLua/src/Modules/m_database.cpp index 538f7682a3..9708a3caea 100644 --- a/plugins/MirLua/src/Modules/m_database.cpp +++ b/plugins/MirLua/src/Modules/m_database.cpp @@ -305,7 +305,7 @@ void MakeDbEvent(lua_State *L, DBEVENTINFO &dbei) switch (lua_type(L, -1)) { case LUA_TTABLE: dbei.cbBlob = (DWORD)lua_rawlen(L, 4); - dbei.pBlob = (BYTE*)mir_calloc(dbei.cbBlob); + dbei.pBlob = (uint8_t*)mir_calloc(dbei.cbBlob); for (DWORD i = 0; i < dbei.cbBlob; i++) { lua_geti(L, 4, i + 1); dbei.pBlob[i] = lua_tointeger(L, -1); @@ -316,7 +316,7 @@ void MakeDbEvent(lua_State *L, DBEVENTINFO &dbei) size_t nLen; const char *str = lua_tolstring(L, -1, &nLen); dbei.cbBlob = (DWORD)nLen; - dbei.pBlob = (BYTE*)mir_alloc(nLen); + dbei.pBlob = (uint8_t*)mir_alloc(nLen); memcpy(dbei.pBlob, str, nLen); break; } @@ -539,7 +539,7 @@ static int db_WriteSetting(lua_State *L) case DBVT_BLOB: { dbv.cpbVal = (WORD)lua_rawlen(L, 4); - dbv.pbVal = (BYTE*)mir_calloc(dbv.cpbVal); + dbv.pbVal = (uint8_t*)mir_calloc(dbv.cpbVal); for (int i = 0; i < dbv.cpbVal; i++) { lua_geti(L, 4, i + 1); dbv.pbVal[i] = lua_tointeger(L, -1); -- cgit v1.2.3