summaryrefslogtreecommitdiff
path: root/gdb/coffread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/coffread.c')
-rw-r--r--gdb/coffread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 037fb87a0e9..4fb426c343b 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -645,9 +645,9 @@ coff_symfile_read (objfile, mainline)
from the section address, rather than as absolute addresses.
FIXME: We should use BFD to read the symbol table, and thus avoid
this problem. */
- pe_file = !
- ( strncmp (bfd_get_target (objfile->obfd), "pe", 2)
- | strncmp (bfd_get_target (objfile->obfd), "epoc-pe", 7));
+ pe_file =
+ strncmp (bfd_get_target (objfile->obfd), "pe", 2) == 0
+ || strncmp (bfd_get_target (objfile->obfd), "epoc-pe", 7) == 0;
/* End of warning */