mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-13 10:22:55 +01:00
Fixed gcc 2.95.3 problem. Bug: 1570919
This commit is contained in:
parent
baca6c23c2
commit
3ffbf208a0
@ -605,7 +605,12 @@ Value::operator >( const Value &other ) const
|
||||
bool
|
||||
Value::operator ==( const Value &other ) const
|
||||
{
|
||||
if ( type_ != other.type_ )
|
||||
//if ( type_ != other.type_ )
|
||||
// GCC 2.95.3 says:
|
||||
// attempt to take address of bit-field structure member `Json::Value::type_'
|
||||
// Beats me, but a temp solves the problem.
|
||||
int temp = other.type_;
|
||||
if ( type_ != temp )
|
||||
return false;
|
||||
switch ( type_ )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user