diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2010-02-11 21:23:50 +0300 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2010-02-11 21:28:30 +0300 |
commit | 9b66d8e4c3030474a75e598f699eccc118a3d651 (patch) | |
tree | 9bba8cb1f9bab97632d0c6b3a07e18d7fc20f217 /preproc.c | |
parent | 89fe355ad00d49aa0a8514a76dfd0745d29cfd09 (diff) | |
download | nasm-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |