summaryrefslogtreecommitdiff
path: root/assemble.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-07-30 15:06:47 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-07-30 15:06:47 -0700
commite873c9b16b2d1e1951897a6e7842d6c406166ad3 (patch)
treeace0e063b8221f3145d9558a3f967a101e2acce0 /assemble.c
parent984c4db12f312e5d6051e9c02fb02b7b24bdb226 (diff)
parenta95a76a8685b5cb485b11c1c76c2a928d8f9b9a3 (diff)
downloadnasm-e873c9b16b2d1e1951897a6e7842d6c406166ad3.tar.gz
nasm-e873c9b16b2d1e1951897a6e7842d6c406166ad3.tar.bz2
nasm-e873c9b16b2d1e1951897a6e7842d6c406166ad3.zip
Merge commit 'cyr/hpa-list'
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 6e34b7c..4d84cc0 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;