Merge pull request #739 from dankex/fix_mac

Fix compilation error for Mac OS X and 64-bit architecture
pull/749/head
Kim Kulling 2016-01-02 11:35:27 +01:00
commit 51bdc6c9bf
1 changed files with 2 additions and 0 deletions

View File

@ -557,12 +557,14 @@ public:
flags_ |= kIntFlag; flags_ |= kIntFlag;
} }
#if !defined(__x86_64__)
//! Constructor for size_t value. //! Constructor for size_t value.
explicit GenericValue( size_t u ) RAPIDJSON_NOEXCEPT : data_(), flags_( kNumberUintFlag ) { explicit GenericValue( size_t u ) RAPIDJSON_NOEXCEPT : data_(), flags_( kNumberUintFlag ) {
data_.n.u64 = u; data_.n.u64 = u;
if ( !( u&0x80000000 ) ) if ( !( u&0x80000000 ) )
flags_ |= kIntFlag|kInt64Flag; flags_ |= kIntFlag|kInt64Flag;
} }
#endif
#endif #endif
//! Constructor for double value. //! Constructor for double value.