summaryrefslogtreecommitdiff
path: root/assemble.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2009-07-27 22:33:59 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2009-07-27 22:33:59 +0400
commita92a3a5c499773737c6e94d11a26520d19ac4c5c (patch)
tree9aa490d192a81378620956444627c0b87ed82307 /assemble.c
parentfcd0a743302af1e3b9b3bb1b10e2d4aad6c65437 (diff)
downloadnasm-a92a3a5c499773737c6e94d11a26520d19ac4c5c.tar.gz
nasm-a92a3a5c499773737c6e94d11a26520d19ac4c5c.tar.bz2
nasm-a92a3a5c499773737c6e94d11a26520d19ac4c5c.zip
assemble.c -- use list helpers
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'assemble.c')
-rw-r--r--assemble.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/assemble.c b/assemble.c
index 67339be..fed0805 100644
--- a/assemble.c
+++ b/assemble.c
@@ -378,7 +378,7 @@ int64_t assemble(int32_t segment, int64_t offset, int bits, uint32_t cp,
"instruction->times < 0 (%ld) in assemble()", t);
while (t--) { /* repeat TIMES times */
- for (e = instruction->eops; e; e = e->next) {
+ list_for_each(e, instruction->eops) {
if (e->type == EOT_DB_NUMBER) {
if (wsize == 1) {
if (e->segment != NO_SEG)
@@ -704,7 +704,7 @@ int64_t insn_size(int32_t segment, int64_t offset, int bits, uint32_t cp,
break;
}
- for (e = instruction->eops; e; e = e->next) {
+ list_for_each(e, instruction->eops) {
int32_t align;
osize = 0;