mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-12 00:26:27 -04:00
Use simpler int to hex string conversion
Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
parent
e53be35c09
commit
3edcee72c4
@ -228,7 +228,7 @@ class BignumAdd(BignumOperation):
|
||||
self.symbol = "+"
|
||||
|
||||
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__':
|
||||
|
Loading…
x
Reference in New Issue
Block a user