diff --git a/bitutilities.py b/bitutilities.py index 0026f7d..35bc7a3 100644 --- a/bitutilities.py +++ b/bitutilities.py @@ -171,14 +171,14 @@ def binary_subtraction(minuend: BasicRegister, subtrahend: BasicRegister) -> Bas # return first_register, second_register -def align_registers(*args: BasicRegister) -> tuple[BasicRegister, ...]: +def align_registers(*registers: BasicRegister) -> tuple[BasicRegister, ...]: """ Aligns registers by the length of the bigger one. - :param args: Basic registers to align. + :param BasicRegister registers: Registers to align. :return: Aligned registers. :rtype: tuple[BasicRegister, ...] """ - required_size: int = max(map(len, args)) - return tuple(reg.adjusted_by_size(required_size) for reg in args) + required_size: int = max(map(len, registers)) + return tuple(reg.adjusted_by_size(required_size) for reg in registers)