summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/python-extensions.swig
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/scripts/Python/python-extensions.swig')
-rw-r--r--lldb/scripts/Python/python-extensions.swig9
1 files changed, 7 insertions, 2 deletions
diff --git a/lldb/scripts/Python/python-extensions.swig b/lldb/scripts/Python/python-extensions.swig
index 13ed5578b11..1cf6519b390 100644
--- a/lldb/scripts/Python/python-extensions.swig
+++ b/lldb/scripts/Python/python-extensions.swig
@@ -515,10 +515,15 @@ class value(object):
return float (self.sbvalue.GetValueAsSigned())
def __oct__(self):
- return '0%o' % self.sbvalue.GetValueAsSigned()
+ return '0%o' % self.sbvalue.GetValueAsUnsigned()
def __hex__(self):
- return '0x%x' % self.sbvalue.GetValueAsSigned()
+ return '0x%x' % self.sbvalue.GetValueAsUnsigned()
+ def __eq__(self, other):
+ return self.sbvalue.GetValueAsUnsigned() == self.sbvalue.GetValueAsUnsigned()
+
+ def __neq__(self, other):
+ return not self.__eq__(other)
%}
OpenPOWER on IntegriCloud