From ee488775180691f067304629242094bd65770bac Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 25 Jul 2011 08:47:05 +0200 Subject: Use initialization syntax instead of assignment --- pgsql/types/traits.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pgsql') 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 (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); -- cgit v1.1