This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Fix know() in md_atof() in atof-vax.c


Hi Guys,

  The know() statement in md_atof90 in atof-vax.c was triggering a
  compile time warning about a comparison between signed and unsigned
  quantities, so I am checking in the patch below to fix this.

Cheers
  Nick

gas/ChangeLog
2007-04-21  Nick Clifton  <nickc@redhat.com>

	* config/atof-vax.c (md_atof): Fix comparison inside know().


Index: gas/config/atof-vax.c
===================================================================
RCS file: /cvs/src/src/gas/config/atof-vax.c,v
retrieving revision 1.8
diff -c -3 -p -r1.8 atof-vax.c
*** gas/config/atof-vax.c	5 May 2005 09:12:52 -0000	1.8
--- gas/config/atof-vax.c	21 Apr 2007 12:48:10 -0000
*************** md_atof (int what_statement_type,
*** 435,441 ****
           a little-endian machine, be very careful about
           converting words to chars.  */
        number_of_chars = atof_vax_sizeof (kind_of_float);
!       know (number_of_chars <= MAXIMUM_NUMBER_OF_LITTLENUMS * sizeof (LITTLENUM_TYPE));
        limit = words + (number_of_chars / sizeof (LITTLENUM_TYPE));
        for (littlenumP = words; littlenumP < limit; littlenumP++)
  	{
--- 435,441 ----
           a little-endian machine, be very careful about
           converting words to chars.  */
        number_of_chars = atof_vax_sizeof (kind_of_float);
!       know (number_of_chars <= (int)(MAXIMUM_NUMBER_OF_LITTLENUMS * sizeof (LITTLENUM_TYPE)));
        limit = words + (number_of_chars / sizeof (LITTLENUM_TYPE));
        for (littlenumP = words; littlenumP < limit; littlenumP++)
  	{


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]