Browse Source

Fixed Integer class

- fixed not equal operator
Patrick 4 năm trước cách đây
mục cha
commit
236cf07a44
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      source/boxing/Integer.cpp

+ 2 - 2
source/boxing/Integer.cpp

@@ -149,12 +149,12 @@ bool ls_std::Integer::operator==(int _value) const
 
 bool ls_std::Integer::operator!=(const Integer &_integer) const
 {
-  return this->value == _integer;
+  return this->value != _integer;
 }
 
 bool ls_std::Integer::operator!=(int _value) const
 {
-  return this->value == _value;
+  return this->value != _value;
 }
 
 bool ls_std::Integer::operator>(const Integer &_integer) const