diff options
Diffstat (limited to 'libpqpp/pq-binarycolumn.cpp')
-rw-r--r-- | libpqpp/pq-binarycolumn.cpp | 6 |
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())); |