aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server/shared/DataStores/DB2DatabaseLoader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/shared/DataStores/DB2DatabaseLoader.cpp b/src/server/shared/DataStores/DB2DatabaseLoader.cpp
index a147b12aae4..a449428a5fd 100644
--- a/src/server/shared/DataStores/DB2DatabaseLoader.cpp
+++ b/src/server/shared/DataStores/DB2DatabaseLoader.cpp
@@ -69,8 +69,8 @@ char* DB2DatabaseLoader::Load(uint32& records, char**& indexTable, char*& string
// Resize index table
uint32 indexTableSize = records;
if (PreparedQueryResult maxIdResult = HotfixDatabase.Query(HotfixDatabase.GetPreparedStatement(HotfixDatabaseStatements(_loadInfo->Statement + 1))))
- if ((*maxIdResult)[0].GetUInt32() > records)
- indexTableSize = (*maxIdResult)[0].GetUInt32();
+ if (uint32((*maxIdResult)[0].GetUInt64()) > records)
+ indexTableSize = uint32((*maxIdResult)[0].GetUInt64());
if (indexTableSize > records)
{