Extensive minor changes to avoid various gcc warnings. Also:
[deliverable/binutils-gdb.git] / bfd / ieee.c
index fc4be70c4b7b94de9f3d2b394c97479677e930da..4256ffdae8ae514a63afa071bc0078a13963841e 100644 (file)
@@ -543,7 +543,8 @@ parse_expression (ieee, value, symbol, pcrel, extra, section)
 #define ieee_seek(abfd, offset) \
   IEEE_DATA(abfd)->h.input_p = IEEE_DATA(abfd)->h.first_byte + offset
 
-#define ieee_pos(abfd)   IEEE_DATA(abfd)->h.input_p -IEEE_DATA(abfd)->h.first_byte
+#define ieee_pos(abfd) \
+  (IEEE_DATA(abfd)->h.input_p - IEEE_DATA(abfd)->h.first_byte)
 
 static unsigned int last_index;
 static char last_type;         /* is the index for an X or a D */
@@ -1133,7 +1134,7 @@ ieee_archive_p (abfd)
 
          /* Make sure that we don't go over the end of the buffer */
 
-         if (ieee_pos (abfd) > sizeof (buffer) / 2)
+         if ((size_t) ieee_pos (abfd) > sizeof (buffer) / 2)
            {
              /* Past half way, reseek and reprime */
              buffer_offset += ieee_pos (abfd);
@@ -1936,7 +1937,7 @@ do_with_relocs (abfd, s)
              bfd_set_error (bfd_error_no_memory);
              return false;
            }
-         memset ((PTR) stream, 0, s->_raw_size);
+         memset ((PTR) stream, 0, (size_t) s->_raw_size);
        }
       while (current_byte_index < s->_raw_size)
        {
@@ -2116,7 +2117,7 @@ flush ()
 {
   if (bfd_write ((PTR) (output_ptr_start), 1, output_ptr - output_ptr_start,
                 output_bfd)
-      != output_ptr - output_ptr_start)
+      != (bfd_size_type) (output_ptr - output_ptr_start))
     abort ();
   output_ptr = output_ptr_start;
   output_buffer++;
This page took 0.023723 seconds and 4 git commands to generate.