From 182bc6b6fb3bb54b3890d3ea251973ef1dc50dd1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 12 Mar 2021 02:17:35 +0100 Subject: [PATCH] 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. --- src/backends/postgresql/vector-into-type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/postgresql/vector-into-type.cpp b/src/backends/postgresql/vector-into-type.cpp index d55a9e5c..9783be82 100644 --- a/src/backends/postgresql/vector-into-type.cpp +++ b/src/backends/postgresql/vector-into-type.cpp @@ -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(begin_); curRow != endRow; ++curRow, ++i) { // first, deal with indicators