Преглед изворни кода

Fixed Integer class

- fixed not equal operator
Patrick пре 4 година
родитељ
комит
236cf07a44
1 измењених фајлова са 2 додато и 2 уклоњено
  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