Use C++ cast operators.

This commit is contained in:
Mateusz Loskot
2012-02-20 23:41:35 +00:00
parent 1f0c57417e
commit 1070898f95

View File

@@ -500,9 +500,9 @@ bool statement_impl::resize_intos(std::size_t upperBound)
{
rows = 0;
}
if (upperBound != 0 && upperBound < (std::size_t)rows)
if (upperBound != 0 && upperBound < static_cast<std::size_t>(rows))
{
rows = (int)upperBound;
rows = static_cast<int>(upperBound);
}
std::size_t const isize = intos_.size();