summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_database.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src/m_database.cpp')
-rw-r--r--plugins/MirLua/src/m_database.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/m_database.cpp b/plugins/MirLua/src/m_database.cpp
index b50f2d80a9..7a916f63d2 100644
--- a/plugins/MirLua/src/m_database.cpp
+++ b/plugins/MirLua/src/m_database.cpp
@@ -297,7 +297,7 @@ void MakeDbEvent(lua_State *L, DBEVENTINFO &dbei)
switch (lua_type(L, -1))
{
case LUA_TTABLE:
- dbei.cbBlob = lua_rawlen(L, 4);
+ dbei.cbBlob = (DWORD)lua_rawlen(L, 4);
dbei.pBlob = (BYTE*)mir_calloc(dbei.cbBlob);
for (DWORD i = 0; i < dbei.cbBlob; i++)
{
@@ -309,7 +309,7 @@ void MakeDbEvent(lua_State *L, DBEVENTINFO &dbei)
case LUA_TSTRING:
size_t nLen;
const char *str = lua_tolstring(L, -1, &nLen);
- dbei.cbBlob = nLen;
+ dbei.cbBlob = (DWORD)nLen;
dbei.pBlob = (BYTE*)mir_alloc(nLen);
memcpy(dbei.pBlob, str, nLen);
break;