diff options
author | luigi1111 <luigi1111w@gmail.com> | 2018-06-19 12:39:12 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2018-06-19 12:39:12 -0500 |
commit | f62399b88da9f50638031286eb4f56c462d2263d (patch) | |
tree | 74d19da8f2ebcee2e33b151da8a7f6d374c58ab6 /contrib/epee | |
parent | Merge pull request #3691 (diff) | |
parent | object_sizes: add a few useful types (diff) | |
download | monero-f62399b88da9f50638031286eb4f56c462d2263d.tar.xz |
Merge pull request #3821
558d05b epee: log type name when a container size check fails (moneromooo-monero)
a2566db object_sizes: add a few useful types (moneromooo-monero)
Diffstat (limited to 'contrib/epee')
-rw-r--r-- | contrib/epee/include/serialization/keyvalue_serialization_overloads.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/include/serialization/keyvalue_serialization_overloads.h b/contrib/epee/include/serialization/keyvalue_serialization_overloads.h index 7087136cc..09087f785 100644 --- a/contrib/epee/include/serialization/keyvalue_serialization_overloads.h +++ b/contrib/epee/include/serialization/keyvalue_serialization_overloads.h @@ -156,7 +156,7 @@ namespace epee typename stl_container::value_type* pelem = (typename stl_container::value_type*)buff.data(); CHECK_AND_ASSERT_MES(!(loaded_size%sizeof(typename stl_container::value_type)), false, - "size in blob " << loaded_size << " not have not zero modulo for sizeof(value_type) = " << sizeof(typename stl_container::value_type)); + "size in blob " << loaded_size << " not have not zero modulo for sizeof(value_type) = " << sizeof(typename stl_container::value_type) << ", type " << typeid(typename stl_container::value_type).name()); size_t count = (loaded_size/sizeof(typename stl_container::value_type)); for(size_t i = 0; i < count; i++) container.insert(container.end(), *(pelem++)); |