summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/output/amgc_output_pad_symbol.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/output/amgc_output_pad_symbol.c b/src/output/amgc_output_pad_symbol.c
index 6a475ee..6c1d34a 100644
--- a/src/output/amgc_output_pad_symbol.c
+++ b/src/output/amgc_output_pad_symbol.c
@@ -21,20 +21,15 @@ int amgc_output_pad_symbol(
if (layout->symwidth < 1)
return -1;
- if (layout->tabwidth) {
- symwidth += layout->tabwidth;
- symwidth &= (~(layout->tabwidth-1));
- } else {
- symwidth += AMGC_TAB_WIDTH;
- symwidth &= (~(AMGC_TAB_WIDTH-1));
- }
-
if (layout->tabwidth == 0)
return fprintf(fout,"%*c",layout->symwidth-len,' ');
+ symwidth += layout->tabwidth;
+ symwidth &= (~(layout->tabwidth-1));
+
len &= (~(layout->tabwidth-1));
- while (len < layout->symwidth) {
+ while (len < symwidth) {
if (fputc('\t',fout) < 0)
return -1;
else