From cb06e42e800f9c639dab981dd2518098c5828e55 Mon Sep 17 00:00:00 2001 From: Nathan Hourt Date: Tue, 17 Mar 2020 14:42:13 -0500 Subject: [PATCH] Fix Build This is necessary to build in my environment for both clang and g++ Clang 9.0.1 G++ 9.2.1 Boost 1.72.0 --- include/fc/io/raw.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fc/io/raw.hpp b/include/fc/io/raw.hpp index 6b0371b..c41cc86 100644 --- a/include/fc/io/raw.hpp +++ b/include/fc/io/raw.hpp @@ -31,7 +31,7 @@ namespace fc { boost::endian::little_uint64_buf_at hilo[2]; hilo[0] = uint128_hi64( v ); hilo[1] = uint128_lo64( v ); - s.write( hilo[0].data(), sizeof(hilo) ); + s.write( (char*)hilo[0].data(), sizeof(hilo) ); } template inline void unpack( Stream& s, uint128_t& v, uint32_t _max_depth ) @@ -731,7 +731,7 @@ namespace fc { void pack( Stream& s, const boost::endian::endian_buffer& v, uint32_t _max_depth ) { FC_ASSERT( _max_depth > 0 ); - s.write( v.data(), sizeof(v) ); + s.write( (char*)v.data(), sizeof(v) ); } template void unpack( Stream& s, boost::endian::endian_buffer& v, uint32_t _max_depth )