diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-07-25 08:47:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-07-25 08:47:05 +0200 |
commit | ee488775180691f067304629242094bd65770bac (patch) | |
tree | abd43394cae26e6ae3f849813d9f38da81965d2d | |
parent | cf9075cb45b67c8c8c5075a089fc0bf12c7215c9 (diff) |
Use initialization syntax instead of assignment
-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 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); |