aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-07-25 08:47:05 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-07-25 08:47:05 +0200
commitee488775180691f067304629242094bd65770bac (patch)
treeabd43394cae26e6ae3f849813d9f38da81965d2d
parentcf9075cb45b67c8c8c5075a089fc0bf12c7215c9 (diff)
Use initialization syntax instead of assignment
-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);