diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2016-02-12 21:50:38 +0300 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2016-02-12 21:50:38 +0300 |
commit | f8d52b655eee94fd6620010a25cba068245bd689 (patch) | |
tree | de89d889e95002635aa9c345fd3af527108291f8 | |
parent | b13df02490700899de69b062d0704e97d0798543 (diff) | |
download | nasm-f8d52b655eee94fd6620010a25cba068245bd689.tar.gz |
output: outmac -- Fix few nits during merge
- typo in @if statement
- unused @originalIndex
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r-- | output/outmac.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/output/outmac.c b/output/outmac.c index 9c6e935c..18bbf498 100644 --- a/output/outmac.c +++ b/output/outmac.c @@ -646,7 +646,7 @@ static void macho_output(int32_t secto, const void *data, static int32_t macho_section(char *name, int pass, int *bits) { - int32_t index, originalIndex; + int32_t index; char *sectionAttributes; struct sectmap *sm; struct section *s; @@ -669,8 +669,7 @@ static int32_t macho_section(char *name, int pass, int *bits) char *currentAttribute; /* try to find section with that name */ - originalIndex = index = get_section_index_by_name(sm->segname, - sm->sectname); + index = get_section_index_by_name(sm->segname, sm->sectname); /* create it if it doesn't exist yet */ if (index == -1) { @@ -844,7 +843,7 @@ static void macho_sectalign(int32_t seg, unsigned int value) return; align = alignlog2_32(value); - if (s->align < align); + if (s->align < align) s->align = align; } |