This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Obvious fix for typo in gcc/real.c
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 6 Mar 2015 12:05:36 +0000
- Subject: [patch] Obvious fix for typo in gcc/real.c
- Authentication-results: sourceware.org; auth=none
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);