Clear HAS_RELOC if there are no relocations
[deliverable/binutils-gdb.git] / bfd / pef.c
index 363e6416e79b0a0ae1fc92915ce0f4a44e7526f8..b08202d153e710b72fb803ae9d5dbdf028ee21a8 100644 (file)
--- a/bfd/pef.c
+++ b/bfd/pef.c
@@ -1,5 +1,5 @@
 /* PEF support for BFD.
-   Copyright (C) 1999-2014 Free Software Foundation, Inc.
+   Copyright (C) 1999-2016 Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
 
@@ -487,7 +487,7 @@ bfd_pef_scan_start_address (bfd *abfd)
     goto end;
 
   for (section = abfd->sections; section != NULL; section = section->next)
-    if ((section->index + 1) == header.main_section)
+    if ((long) (section->index + 1) == header.main_section)
       break;
 
   if (section == NULL)
This page took 0.024512 seconds and 4 git commands to generate.