summaryrefslogtreecommitdiff
path: root/preproc.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2010-02-11 21:23:50 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2010-02-11 21:28:30 +0300
commit9b66d8e4c3030474a75e598f699eccc118a3d651 (patch)
tree9bba8cb1f9bab97632d0c6b3a07e18d7fc20f217 /preproc.c
parent89fe355ad00d49aa0a8514a76dfd0745d29cfd09 (diff)
downloadnasm-9b66d8e4c3030474a75e598f699eccc118a3d651.tar.gz
nasm-9b66d8e4c3030474a75e598f699eccc118a3d651.tar.bz2
nasm-9b66d8e4c3030474a75e598f699eccc118a3d651.zip
Use ALIGN helper
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'preproc.c')
-rw-r--r--preproc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/preproc.c b/preproc.c
index b5c95af..575755f 100644
--- a/preproc.c
+++ b/preproc.c
@@ -2228,7 +2228,7 @@ static int do_directive(Token * tline)
free_tlist(tt);
/* Round up to even stack slots */
- size = (size+StackSize-1) & ~(StackSize-1);
+ size = ALIGN(size, StackSize);
/* Now define the macro for the argument */
snprintf(directive, sizeof(directive), "%%define %s (%s+%d)",
@@ -2303,7 +2303,7 @@ static int do_directive(Token * tline)
free_tlist(tt);
/* Round up to even stack slots */
- size = (size+StackSize-1) & ~(StackSize-1);
+ size = ALIGN(size, StackSize);
offset += size; /* Negative offset, increment before */