Skip to content

Commit

Permalink
Merge pull request #234 from VanGrx/develop
Browse files Browse the repository at this point in the history
Unit tests refactor and expansions
  • Loading branch information
VanGrx authored Sep 2, 2020
2 parents 9eb7a33 + 3054aad commit 74f907e
Show file tree
Hide file tree
Showing 22 changed files with 5,174 additions and 2,668 deletions.
2 changes: 1 addition & 1 deletion contrib/epee/include/math_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include <list>
#include <numeric>
#include <boost/timer.hpp>
#include <boost/timer/timer.hpp>
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/random_generator.hpp>

Expand Down
2 changes: 1 addition & 1 deletion external/boost/archive/portable_binary_archive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#endif

#include <boost/archive/basic_archive.hpp>
#include <boost/detail/endian.hpp>
#include <boost/predef/other/endian.h>

#include <boost/archive/impl/archive_serializer_map.ipp>

Expand Down
6 changes: 3 additions & 3 deletions external/boost/archive/portable_binary_iarchive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class portable_binary_iarchive :
#include <istream>
#include <string>

#include <boost/detail/endian.hpp>
#include <boost/predef/other/endian.h>
#include <boost/serialization/throw_exception.hpp>
#include <boost/archive/archive_exception.hpp>

Expand All @@ -252,12 +252,12 @@ portable_binary_iarchive::load_impl(boost::intmax_t & l, char maxsize){
);

char * cptr = reinterpret_cast<char *>(& l);
#ifdef BOOST_BIG_ENDIAN
#if BOOST_ENDIAN_BIG_BYTE
cptr += (sizeof(boost::intmax_t) - size);
#endif
this->primitive_base_t::load_binary(cptr, size);

#ifdef BOOST_BIG_ENDIAN
#if BOOST_ENDIAN_BIG_BYTE
if(m_flags & endian_little)
#else
if(m_flags & endian_big)
Expand Down
4 changes: 2 additions & 2 deletions external/boost/archive/portable_binary_oarchive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class portable_binary_oarchive :
// See http://www.boost.org for updates, documentation, and revision history.

#include <ostream>
#include <boost/detail/endian.hpp>
#include <boost/predef/other/endian.h>

namespace boost { namespace archive {

Expand Down Expand Up @@ -258,7 +258,7 @@ portable_binary_oarchive::save_impl(
else
ll = l;
char * cptr = reinterpret_cast<char *>(& ll);
#ifdef BOOST_BIG_ENDIAN
#if BOOST_ENDIAN_BIG_BYTE
cptr += (sizeof(boost::intmax_t) - size);
if(m_flags & endian_little)
reverse_bytes(size, cptr);
Expand Down
Loading

0 comments on commit 74f907e

Please sign in to comment.