|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r85595 - trunk/boost/multiprecision/cpp_int
From: john_at_[hidden]
Date: 2013-09-07 14:16:23
Author: johnmaddock
Date: 2013-09-07 14:16:22 EDT (Sat, 07 Sep 2013)
New Revision: 85595
URL: http://svn.boost.org/trac/boost/changeset/85595
Log:
Fix bug in cpp_int serialization code
Text files modified:
trunk/boost/multiprecision/cpp_int/serialize.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/multiprecision/cpp_int/serialize.hpp
==============================================================================
--- trunk/boost/multiprecision/cpp_int/serialize.hpp Sat Sep 7 12:36:45 2013 (r85594)
+++ trunk/boost/multiprecision/cpp_int/serialize.hpp 2013-09-07 14:16:22 EDT (Sat, 07 Sep 2013) (r85595)
@@ -78,7 +78,7 @@
ar & s;
limb_type* pl = val.limbs();
std::size_t limb_count = val.size();
- std::size_t byte_count = limb_count * sizeof(limb_count);
+ std::size_t byte_count = limb_count * sizeof(limb_type);
ar & byte_count;
for(std::size_t i = 0; i < limb_count; ++i)
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk