diff options
author | Victor van den Elzen <victor.vde@gmail.com> | 2008-10-01 13:16:26 +0200 |
---|---|---|
committer | Victor van den Elzen <victor.vde@gmail.com> | 2008-10-01 13:21:02 +0200 |
commit | fd49408ed9a0250f085ff41bef1fe48423447245 (patch) | |
tree | 4c8786274f40eb2bb3fab455731f1602a7fe4cae /macros | |
parent | 4c9d6220b4b9047c7882c259d1a1d638941cd750 (diff) | |
download | nasm-fd49408ed9a0250f085ff41bef1fe48423447245.tar.gz nasm-fd49408ed9a0250f085ff41bef1fe48423447245.tar.bz2 nasm-fd49408ed9a0250f085ff41bef1fe48423447245.zip |
Already aligned aligns should be 0 bytes, not %1.
Diffstat (limited to 'macros')
-rw-r--r-- | macros/smartalign.mac | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/macros/smartalign.mac b/macros/smartalign.mac index 2c45d28..f2ae104 100644 --- a/macros/smartalign.mac +++ b/macros/smartalign.mac @@ -161,14 +161,14 @@ USE: smartalign %unimacro align 1-2+.nolist %imacro align 1-2+.nolist %ifnempty %2 - times ((%1) - (($-$$) % (%1))) %2 + times (((%1) - (($-$$) % (%1))) % (%1)) %2 %else %push - %assign %$pad (%1) - (($-$$) % (%1)) + %assign %$pad (((%1) - (($-$$) % (%1))) % (%1)) %if %$pad > __ALIGN_JMP_THRESHOLD__ jmp %$end ; We can't re-use %$pad here as $ will have changed! - times ((%1) - (($-$$) % (%1))) nop + times (((%1) - (($-$$) % (%1))) % (%1)) nop %$end: %else %if __BITS__ == 16 |