This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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, committed] libgfortran/io/transfer.c typo.


	While debugging another problem with transfer.c, I noticed a
warning for read_sf that does not appear to occur for x86.  Corrected with
the following patch approved by Paul Brook on IRC.

David


	* io/transfer.c (read_sf): Change bitwise "and" to logical "and".

Index: transfer.c
===================================================================
RCS file: /cvs/gcc/gcc/libgfortran/io/transfer.c,v
retrieving revision 1.20
diff -c -p -r1.20 transfer.c
*** transfer.c	12 Dec 2004 08:59:05 -0000	1.20
--- transfer.c	13 Dec 2004 15:52:47 -0000
*************** read_sf (int *length)
*** 162,168 ****
  
        /* If we have a line without a terminating \n, drop through to
  	 EOR below.  */
!       if (readlen < 1 & n == 0)
  	{
  	  generate_error (ERROR_END, NULL);
  	  return NULL;
--- 162,168 ----
  
        /* If we have a line without a terminating \n, drop through to
  	 EOR below.  */
!       if (readlen < 1 && n == 0)
  	{
  	  generate_error (ERROR_END, NULL);
  	  return NULL;


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