aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pgsql/types/traits.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/pgsql/types/traits.hxx b/pgsql/types/traits.hxx
index de56dc0..b3aec70 100644
--- a/pgsql/types/traits.hxx
+++ b/pgsql/types/traits.hxx
@@ -129,7 +129,7 @@ namespace odb
details::endian_traits::ntoh (
*reinterpret_cast<const int*> (b.data ())));
- std::size_t byte_len = v.size / 8 + (v.size % 8 > 0 ? 1 : 0);
+ std::size_t byte_len (v.size / 8 + (v.size % 8 > 0 ? 1 : 0));
assert (n >= byte_len + 4);
v.ubuffer_.assign (b.data () + 4, byte_len);