From 3ffbf208a00067b68c1887268551e788bf8c1035 Mon Sep 17 00:00:00 2001 From: Christopher Dunn Date: Fri, 23 Mar 2007 04:55:07 +0000 Subject: [PATCH] Fixed gcc 2.95.3 problem. Bug: 1570919 --- src/lib_json/json_value.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib_json/json_value.cpp b/src/lib_json/json_value.cpp index 5a59956..b3e90b6 100644 --- a/src/lib_json/json_value.cpp +++ b/src/lib_json/json_value.cpp @@ -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_ ) {