From 3bd1ee0665f8c48bc256fcbe30f447c1fa40bec8 Mon Sep 17 00:00:00 2001 From: azazel Date: Sat, 16 Oct 2010 13:32:30 +0600 Subject: Fix most of the recently introduced warnings --HG-- branch : trunk --- src/server/shared/Database/QueryResult.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/server/shared/Database/QueryResult.cpp') diff --git a/src/server/shared/Database/QueryResult.cpp b/src/server/shared/Database/QueryResult.cpp index fa6070a0516..56ac07ed8a1 100755 --- a/src/server/shared/Database/QueryResult.cpp +++ b/src/server/shared/Database/QueryResult.cpp @@ -94,14 +94,14 @@ m_length(NULL) m_rowCount = mysql_stmt_num_rows(m_stmt); - m_rows.resize(m_rowCount); + m_rows.resize(uint32(m_rowCount)); while (_NextRow()) { - m_rows[m_rowPosition] = new Field[m_fieldCount]; + m_rows[uint32(m_rowPosition)] = new Field[m_fieldCount]; for (uint64 fIndex = 0; fIndex < m_fieldCount; ++fIndex) { if (!*m_rBind[fIndex].is_null) - m_rows[m_rowPosition][fIndex].SetByteValue( m_rBind[fIndex].buffer, + m_rows[uint32(m_rowPosition)][fIndex].SetByteValue( m_rBind[fIndex].buffer, m_rBind[fIndex].buffer_length, m_rBind[fIndex].buffer_type, *m_rBind[fIndex].length ); @@ -114,13 +114,13 @@ m_length(NULL) case MYSQL_TYPE_BLOB: case MYSQL_TYPE_STRING: case MYSQL_TYPE_VAR_STRING: - m_rows[m_rowPosition][fIndex].SetByteValue( "", + m_rows[uint32(m_rowPosition)][fIndex].SetByteValue( "", m_rBind[fIndex].buffer_length, m_rBind[fIndex].buffer_type, *m_rBind[fIndex].length ); break; default: - m_rows[m_rowPosition][fIndex].SetByteValue( 0, + m_rows[uint32(m_rowPosition)][fIndex].SetByteValue( 0, m_rBind[fIndex].buffer_length, m_rBind[fIndex].buffer_type, *m_rBind[fIndex].length ); @@ -141,7 +141,7 @@ ResultSet::~ResultSet() PreparedResultSet::~PreparedResultSet() { - for (uint64 i = 0; i < m_rowCount; ++i) + for (uint32 i = 0; i < uint32(m_rowCount); ++i) delete[] m_rows[i]; } -- cgit v1.2.3