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

Nick Clifton nickc@redhat.com
Sat Apr 21 12:56:00 GMT 2007


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++)
  	{



More information about the Binutils mailing list