bignum_common: Adjusted format_arg
to always size input according to modulo.
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
This commit is contained in:
parent
ad335b55ff
commit
3d2aab891b
1 changed files with 1 additions and 4 deletions
|
@ -297,10 +297,7 @@ class ModOperationCommon(OperationCommon):
|
|||
return self.format_arg(self.val_n)
|
||||
|
||||
def format_arg(self, val: str) -> str:
|
||||
if self.input_style == "variable":
|
||||
return val.zfill(len(hex(self.int_n)) - 2)
|
||||
else:
|
||||
return super().format_arg(val)
|
||||
return super().format_arg(val).zfill(self.hex_digits)
|
||||
|
||||
def arguments(self) -> List[str]:
|
||||
return [quote_str(self.arg_n)] + super().arguments()
|
||||
|
|
Loading…
Reference in a new issue