Skip to content

Commit 4bc1405

Browse files
authored
Merge pull request #192 from bitshares/update-bool-pack
Update bool serialization
2 parents 5768c6d + 9763d1c commit 4bc1405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/fc/io/raw.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ namespace fc {
307307
template<typename Stream> inline void pack( Stream& s, const bool& v, uint32_t _max_depth )
308308
{
309309
FC_ASSERT( _max_depth > 0 );
310-
fc::raw::pack( s, uint8_t(v), _max_depth - 1 );
310+
fc::raw::pack( s, v ? uint8_t(1) : uint8_t(0), _max_depth - 1 );
311311
}
312312
template<typename Stream> inline void unpack( Stream& s, bool& v, uint32_t _max_depth )
313313
{

0 commit comments

Comments
 (0)