summaryrefslogtreecommitdiff
path: root/standard.mac
diff options
context:
space:
mode:
authorVictor van den Elzen <victor.vde@gmail.com>2008-10-01 13:16:26 +0200
committerVictor van den Elzen <victor.vde@gmail.com>2008-10-01 13:21:02 +0200
commitfd49408ed9a0250f085ff41bef1fe48423447245 (patch)
tree4c8786274f40eb2bb3fab455731f1602a7fe4cae /standard.mac
parent4c9d6220b4b9047c7882c259d1a1d638941cd750 (diff)
downloadnasm-fd49408ed9a0250f085ff41bef1fe48423447245.tar.gz
nasm-fd49408ed9a0250f085ff41bef1fe48423447245.tar.bz2
nasm-fd49408ed9a0250f085ff41bef1fe48423447245.zip
Already aligned aligns should be 0 bytes, not %1.
Diffstat (limited to 'standard.mac')
-rw-r--r--standard.mac6
1 files changed, 3 insertions, 3 deletions
diff --git a/standard.mac b/standard.mac
index b3e4ae3..0faa187 100644
--- a/standard.mac
+++ b/standard.mac
@@ -66,13 +66,13 @@ __SECT__
%endmacro
%imacro align 1-2+.nolist nop
- times ((%1) - (($-$$) % (%1))) %2
+ times (((%1) - (($-$$) % (%1))) % (%1)) %2
%endmacro
%imacro alignb 1-2+.nolist
%ifempty %2
- resb ((%1) - (($-$$) % (%1)))
+ resb (((%1) - (($-$$) % (%1))) % (%1))
%else
- times ((%1) - (($-$$) % (%1))) %2
+ times (((%1) - (($-$$) % (%1))) % (%1)) %2
%endif
%endmacro