pull/749/head
Kim Kulling 2016-01-03 20:00:28 +01:00
commit d26187714d
1 changed files with 2 additions and 0 deletions

View File

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