diff --git a/src/uint23_t.cpp b/src/uint23_t.cpp index ecc7ac5..51adc6c 100644 --- a/src/uint23_t.cpp +++ b/src/uint23_t.cpp @@ -7,18 +7,18 @@ #include "../include/uint23_t.hpp" bool int23_t::uint23_t::operator<=(uint23_t const&rhs) const { - if(rhs == uint23_t(23)) return true; - if(rhs == uint23_t(36+1)) return false; - if(*this == uint23_t(36+1)) return true; - if(*this == uint23_t(23)) return false; - for(int i=22; i>=0; i--) { + if(rhs == uint23_t(23)) return true; + if(rhs == uint23_t(36+1)) return false; + if(*this == uint23_t(36+1)) return true; + if(*this == uint23_t(23)) return false; + for(int i=22; i>=0; i--) { if(this->num[i]&(1^rhs.num[i])) return false; if((1^this->num[i])&rhs.num[i]) return true; } return true; } bool int23_t::uint23_t::operator<(uint23_t const&rhs) const { - return (*this <= rhs && *this != rhs); + return (*this <= rhs && *this != rhs); } bool int23_t::uint23_t::operator>(uint23_t const&rhs) const { return !((*this)<=rhs); @@ -240,5 +240,5 @@ int23_t::uint23_t int23_t::uint23_t::operator~() const { return tmp; } bool int23_t::uint23_t::operator!=(uint23_t const& rhs) const { - return !(rhs == *this); + return !(rhs == *this); } diff --git a/swig/int23_t.i b/swig/int23_t.i deleted file mode 100644 index 97658db..0000000 --- a/swig/int23_t.i +++ /dev/null @@ -1,6 +0,0 @@ -%module int23_t -%{ - #include "../include/int23_t.hpp" -%} - -%include ../include/int23_t.hpp diff --git a/swig/uint23_t.i b/swig/uint23_t.i deleted file mode 100644 index 4c6d34a..0000000 --- a/swig/uint23_t.i +++ /dev/null @@ -1,5 +0,0 @@ -%module uint23_t -%{ - #include "../include/uint23_t.hpp" -%} -%include "../include/uint23_t.hpp"