Explorar el Código

Fixed Integer class

- fixed not equal operator
Patrick hace 4 años
padre
commit
236cf07a44
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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