Use simpler int to hex string conversion
Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
parent
56013081c7
commit
855e45c817
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ class BignumAdd(BignumOperation):
|
||||||
self.symbol = "+"
|
self.symbol = "+"
|
||||||
|
|
||||||
def result(self) -> str:
|
def result(self) -> str:
|
||||||
return quote_str(hex(self.int_l + self.int_r).replace("0x", "", 1))
|
return quote_str("{:x}".format(self.int_l + self.int_r))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue