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] Obvious fix for typo in gcc/real.c


Tested x86_64-linux. Committed as obvious.
commit d16f0a5adc3cc29ce96e606b94c129989b4ca6ff
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Fri Mar 6 11:04:31 2015 +0000

    	* real.c (real_from_string): Fix typo in assertion.

diff --git a/gcc/real.c b/gcc/real.c
index 1d1d510..43f124e 100644
--- a/gcc/real.c
+++ b/gcc/real.c
@@ -2075,7 +2075,7 @@ real_from_string (REAL_VALUE_TYPE *r, const char *str)
 	     because the hex digits used in real_from_mpfr did not
 	     start with a digit 8 to f, but the exponent bounds above
 	     should have avoided underflow or overflow.  */
-	  gcc_assert (r->cl = rvc_normal);
+	  gcc_assert (r->cl == rvc_normal);
 	  /* Set a sticky bit if mpfr_strtofr was inexact.  */
 	  r->sig[0] |= inexact;
 	  mpfr_clear (m);

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