浏览代码

fixed warning

Peter LaValle 10 年之前
父节点
当前提交
99e45b995b
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 ) {