Skip to content
Permalink
Browse files

Log type name when size check fails

  • Loading branch information...
miltonf committed Apr 13, 2019
1 parent 2d71b32 commit 516897115ca079cc0f7013119a419d68597b709f
Showing with 1 addition and 1 deletion.
  1. +1 −1 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++));

0 comments on commit 5168971

Please sign in to comment.
You can’t perform that action at this time.