Skip to content

Commit 4c9286e

Browse files
committed
Merge branch 'kallehuttunen-arm_fixes' into develop
see #257
2 parents 7ea8da1 + 61c8e14 commit 4c9286e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ include_directories(./include)
4040
find_package(Boost COMPONENTS serialization unit_test_framework)
4141

4242
if(Boost_FOUND)
43-
include_directories(${Boost_INCLUDE_DIRS})
43+
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
4444
enable_testing()
4545
add_subdirectory(unittests)
4646
endif(Boost_FOUND)

include/cereal/archives/json.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,14 +656,14 @@ namespace cereal
656656
//! Serialize a long if it would not be caught otherwise
657657
template <class T> inline
658658
typename std::enable_if<std::is_same<T, long>::value &&
659-
!std::is_same<T, std::int32_t>::value &&
659+
sizeof(T) >= sizeof(std::int64_t) &&
660660
!std::is_same<T, std::int64_t>::value, void>::type
661661
loadValue( T & t ){ loadLong(t); }
662662

663663
//! Serialize an unsigned long if it would not be caught otherwise
664664
template <class T> inline
665665
typename std::enable_if<std::is_same<T, unsigned long>::value &&
666-
!std::is_same<T, std::uint32_t>::value &&
666+
sizeof(T) >= sizeof(std::uint64_t) &&
667667
!std::is_same<T, std::uint64_t>::value, void>::type
668668
loadValue( T & t ){ loadLong(t); }
669669
#endif // _MSC_VER

include/cereal/archives/xml.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ namespace cereal
531531
//! Loads a type best represented as an unsigned long from the current top node
532532
template <class T, traits::EnableIf<std::is_unsigned<T>::value,
533533
!std::is_same<T, bool>::value,
534+
!std::is_same<T, char>::value,
534535
!std::is_same<T, unsigned char>::value,
535536
sizeof(T) < sizeof(long long)> = traits::sfinae> inline
536537
void loadValue( T & value )

0 commit comments

Comments
 (0)