aboutsummaryrefslogtreecommitdiff
path: root/tccasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccasm.c')
-rw-r--r--tccasm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tccasm.c b/tccasm.c
index 3cbae19..044db83 100644
--- a/tccasm.c
+++ b/tccasm.c
@@ -550,7 +550,10 @@ static void asm_parse_directive(TCCState *s1)
n = asm_int_expr(s1);
next();
}
- sprintf(sname, (n?".%s%d":".%s"), get_tok_str(tok1, NULL), n);
+ if (n)
+ sprintf(sname, ".%s%d", get_tok_str(tok1, NULL), n);
+ else
+ sprintf(sname, ".%s", get_tok_str(tok1, NULL));
use_section(s1, sname);
}
break;