fix BigInt gdb pretty-printer
since commit9536098ff1
Date: Tue Nov 17 10:15:11 2020 +0200 simplify BigInt, remove isSet and commit33b8f7c10b
Date: Wed Jan 6 10:41:22 2021 +0200 bIsBig member is redundant Change-Id: I877364d4b5ed11812c34f2b5d51ec60dd6cca9de Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144215 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
abdad61f12
commit
8980a7e8d4
1 changed files with 3 additions and 6 deletions
|
@ -18,13 +18,10 @@ class BigIntPrinter(object):
|
|||
self.val = val
|
||||
|
||||
def to_string(self):
|
||||
if self.val['bIsSet']:
|
||||
if self.val['bIsBig']:
|
||||
return self._value()
|
||||
else:
|
||||
return self.val['nVal']
|
||||
if self.val['nLen']:
|
||||
return self._value()
|
||||
else:
|
||||
return "unset %s" % self.typename
|
||||
return self.val['nVal']
|
||||
|
||||
def _value(self):
|
||||
len = self.val['nLen']
|
||||
|
|
Loading…
Reference in a new issue