about summary refs log tree commit diff stats
path: root/miasm2/core/objc.py
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2018-08-29 16:27:06 +0200
committerGitHub <noreply@github.com>2018-08-29 16:27:06 +0200
commit7c0d412120abbcfaa51fdb1dd231a27595c873ed (patch)
tree43226fee7292a9a4912ea1d3d0d9728d2aefbcfd /miasm2/core/objc.py
parent86e458d488b02bf3479f9c5a42bb56de23c3ea80 (diff)
parent253547e35343aed844e7bcb033c610409fcbd21e (diff)
downloadmiasm-7c0d412120abbcfaa51fdb1dd231a27595c873ed.tar.gz
miasm-7c0d412120abbcfaa51fdb1dd231a27595c873ed.zip
Merge pull request #828 from serpilliere/fix_lgtm_1
Code cleaning: lgtm.com
Diffstat (limited to 'miasm2/core/objc.py')
-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"""