From: nasm-bot f. C. G. <gor...@gm...> - 2016-02-12 18:54:20
|
Commit-ID: f8d52b655eee94fd6620010a25cba068245bd689 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=f8d52b655eee94fd6620010a25cba068245bd689 Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Fri, 12 Feb 2016 21:50:38 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Fri, 12 Feb 2016 21:50:38 +0300 output: outmac -- Fix few nits during merge - typo in @if statement - unused @originalIndex Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- output/outmac.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/output/outmac.c b/output/outmac.c index 9c6e935..18bbf49 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; } |