summaryrefslogtreecommitdiff
path: root/libpqpp/pq-binarycolumn.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-binarycolumn.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-binarycolumn.cpp')
-rw-r--r--libpqpp/pq-binarycolumn.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpqpp/pq-binarycolumn.cpp b/libpqpp/pq-binarycolumn.cpp
index 1e75343..ce4e8c1 100644
--- a/libpqpp/pq-binarycolumn.cpp
+++ b/libpqpp/pq-binarycolumn.cpp
@@ -22,13 +22,13 @@ PQ::BinaryColumn::apply(DB::HandleField & h) const
h.boolean(valueAs<bool>());
break;
case 21: // INT2OID:
- h.integer(be16toh(valueAs<uint16_t>()));
+ h.integer(static_cast<int64_t>(be16toh(valueAs<uint16_t>())));
break;
case 23: // INT4OID:
- h.integer(be32toh(valueAs<uint32_t>()));
+ h.integer(static_cast<int64_t>(be32toh(valueAs<uint32_t>())));
break;
case 20: // INT8OID:
- h.integer(be64toh(valueAs<uint64_t>()));
+ h.integer(static_cast<int64_t>(be64toh(valueAs<uint64_t>())));
break;
case 17: // BYTEAOID
h.blob(DB::Blob(value(), length()));