summaryrefslogtreecommitdiff
path: root/libpqpp/pq-bulkselectcommand.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-09-18 14:25:24 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-09-18 14:25:24 +0100
commit216c87cbb7228d9130eead5e374dfd7a11a96b98 (patch)
tree7d17ea551cd6a87cb72f4513588262b9160b2e94 /libpqpp/pq-bulkselectcommand.cpp
parentModern jam lto (diff)
downloadlibdbpp-postgresql-216c87cbb7228d9130eead5e374dfd7a11a96b98.tar.bz2
libdbpp-postgresql-216c87cbb7228d9130eead5e374dfd7a11a96b98.tar.xz
libdbpp-postgresql-216c87cbb7228d9130eead5e374dfd7a11a96b98.zip
Add JT recommended warnings
Diffstat (limited to 'libpqpp/pq-bulkselectcommand.cpp')
-rw-r--r--libpqpp/pq-bulkselectcommand.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpqpp/pq-bulkselectcommand.cpp b/libpqpp/pq-bulkselectcommand.cpp
index ff9f2f4..de2ecb4 100644
--- a/libpqpp/pq-bulkselectcommand.cpp
+++ b/libpqpp/pq-bulkselectcommand.cpp
@@ -14,11 +14,11 @@ void
PQ::BulkSelectCommand::execute()
{
if (!executed) {
- execRes = c->checkResult(PQexecPrepared(c->conn, prepare(), values.size(), &values.front(), &lengths.front(),
- &formats.front(), binary),
+ execRes = c->checkResult(PQexecPrepared(c->conn, prepare(), static_cast<int>(values.size()), &values.front(),
+ &lengths.front(), &formats.front(), binary),
PGRES_TUPLES_OK);
- nTuples = PQntuples(execRes);
- tuple = -1;
+ nTuples = static_cast<decltype(nTuples)>(PQntuples(execRes));
+ tuple = static_cast<decltype(tuple)>(-1);
createColumns(execRes);
executed = true;
}