about summary refs log tree commit diff stats
path: root/miasm2/core/objc.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2018-08-21 08:27:40 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2018-08-23 09:35:27 +0200
commit253547e35343aed844e7bcb033c610409fcbd21e (patch)
treef57b90520b3c06edc8483979795d3de2e9a54d26 /miasm2/core/objc.py
parent46bb6b39453ea8b5abb04dfd62492e429376a8ea (diff)
downloadmiasm-253547e35343aed844e7bcb033c610409fcbd21e.tar.gz
miasm-253547e35343aed844e7bcb033c610409fcbd21e.zip
Code cleaning: lgtm.com
Diffstat (limited to '')
-rw-r--r--miasm2/core/objc.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/miasm2/core/objc.py b/miasm2/core/objc.py
index 80f1e341..9649514d 100644
--- a/miasm2/core/objc.py
+++ b/miasm2/core/objc.py
@@ -464,6 +464,9 @@ class CGenInt(CGen):
         return (super(CGenInt, self).__eq__(other) and
                 self._integer == other.integer)
 
+    def __ne__(self, other):
+        return not self.__eq__(other)
+
     def to_c(self):
         """Generate corresponding C"""