diff options
Diffstat (limited to 'pgsql')
-rw-r--r-- | pgsql/types/traits.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pgsql/types/traits.hxx b/pgsql/types/traits.hxx index be45aa8..de56dc0 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); |