Fix harmless warning about size_t to int cast

The begin_ value here is never going to be out of int range, so just
cast it explicitly to avoid a warning about doing it implicitly.
This commit is contained in:
Vadim Zeitlin
2021-03-12 02:17:35 +01:00
parent ae5d5c4460
commit 182bc6b6fb

View File

@@ -79,7 +79,7 @@ void postgresql_vector_into_type_backend::post_fetch(bool gotData, indicator * i
int const endRow = statement_.currentRow_ + statement_.rowsToConsume_;
for (int curRow = statement_.currentRow_, i = begin_;
for (int curRow = statement_.currentRow_, i = static_cast<int>(begin_);
curRow != endRow; ++curRow, ++i)
{
// first, deal with indicators