summaryrefslogtreecommitdiff
path: root/output/outas86.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2017-03-01 01:01:37 -0800
committerH. Peter Anvin <hpa@zytor.com>2017-03-01 01:01:37 -0800
commit09dff8b2577ed93fcefaf1eac31e41785bf7a473 (patch)
tree22a0d3f915a0693f856078d8ab280d7043c5ae3c /output/outas86.c
parente90a89abe47bfc1146f1a2a77409ce103789d9f8 (diff)
downloadnasm-09dff8b2577ed93fcefaf1eac31e41785bf7a473.tar.gz
Remove casts in switch statements only meant to keep OpenWatcom happy
Remove casts in switch statements that were intended to keep OpenWatcom happy. It didn't work, and now we have a more general solution for the problem, which also ought to be less dangerous. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'output/outas86.c')
-rw-r--r--output/outas86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/output/outas86.c b/output/outas86.c
index 3079bc82..631aff0f 100644
--- a/output/outas86.c
+++ b/output/outas86.c
@@ -581,7 +581,7 @@ static void as86_write_section(struct Section *sect, int index)
fwriteint16_t(p->number, ofile);
else
fputc(p->number, ofile);
- switch ((int)s) {
+ switch (s) {
case 0:
break;
case 1: