diff --git a/include/fc/crypto/ripemd160.hpp b/include/fc/crypto/ripemd160.hpp index 2febd58..6b56f31 100644 --- a/include/fc/crypto/ripemd160.hpp +++ b/include/fc/crypto/ripemd160.hpp @@ -1,15 +1,20 @@ #pragma once + #include -#include +#include #include +<<<<<<< HEAD #include +======= +#include +>>>>>>> 13430fce127bb3fdba53d218dd840aea8e46408c namespace fc{ class sha512; class sha256; -class ripemd160 +class ripemd160 { public: ripemd160(); @@ -65,10 +70,10 @@ class ripemd160 friend bool operator != ( const ripemd160& h1, const ripemd160& h2 ); friend ripemd160 operator ^ ( const ripemd160& h1, const ripemd160& h2 ); friend bool operator >= ( const ripemd160& h1, const ripemd160& h2 ); - friend bool operator > ( const ripemd160& h1, const ripemd160& h2 ); - friend bool operator < ( const ripemd160& h1, const ripemd160& h2 ); - - uint32_t _hash[5]; + friend bool operator > ( const ripemd160& h1, const ripemd160& h2 ); + friend bool operator < ( const ripemd160& h1, const ripemd160& h2 ); + + uint32_t _hash[5]; }; class variant; diff --git a/include/fc/real128.hpp b/include/fc/real128.hpp index 98033b5..3a7d26d 100644 --- a/include/fc/real128.hpp +++ b/include/fc/real128.hpp @@ -1,3 +1,4 @@ +#pragma once #include #define FC_REAL128_PRECISION (uint64_t(1000000) * uint64_t(1000000) * uint64_t(1000000)) @@ -38,4 +39,14 @@ namespace fc { void to_variant( const real128& var, variant& vo ); void from_variant( const variant& var, real128& vo ); + namespace raw + { + template + inline void pack( Stream& s, const real128& value_to_pack ) { s.write( (char*)&value_to_pack, sizeof(value_to_pack) ); } + template + inline void unpack( Stream& s, real128& value_to_unpack ) { s.read( (char*)&value_to_unpack, sizeof(value_to_unpack) ); } + } + + + } // namespace fc diff --git a/src/filesystem.cpp b/src/filesystem.cpp index 85dd1f5..a590065 100644 --- a/src/filesystem.cpp +++ b/src/filesystem.cpp @@ -520,13 +520,13 @@ namespace fc { }; simple_lock_file::impl::impl(const path& lock_file_path) : - is_locked(false), - lock_file_path(lock_file_path), #ifdef _WIN32 - file_handle(INVALID_HANDLE_VALUE) + file_handle(INVALID_HANDLE_VALUE), #else - file_handle(-1) + file_handle(-1), #endif + is_locked(false), + lock_file_path(lock_file_path) {} simple_lock_file::impl::~impl()