Core/Misc: MSVC warning fixes

This commit is contained in:
Shauren
2016-04-05 00:15:56 +02:00
parent e3acb2ecc7
commit 70412e7e25
16 changed files with 31 additions and 31 deletions

View File

@@ -357,7 +357,7 @@ void MySQLPreparedStatement::setBinary(const uint8 index, const std::vector<uint
CheckValidIndex(index);
m_paramsSet[index] = true;
MYSQL_BIND* param = &m_bind[index];
size_t len = value.size();
uint32 len = uint32(value.size());
param->buffer_type = MYSQL_TYPE_BLOB;
delete [] static_cast<char *>(param->buffer);
param->buffer = new char[len];