Browse Source

fixed warning

Peter LaValle 10 năm trước cách đây
mục cha
commit
99e45b995b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      contrib/openddlparser/code/Value.cpp

+ 1 - 1
contrib/openddlparser/code/Value.cpp

@@ -46,7 +46,7 @@ void Value::setBool( bool value ) {
 
 bool Value::getBool() {
     assert( ddl_bool == m_type );
-    return ( bool ) ( *m_data );
+    return ( *m_data ) ? true : false;
 }
 
 void Value::setInt8( int8 value ) {