public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] Obvious fix for typo in gcc/real.c
@ 2015-03-06 12:05 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2015-03-06 12:05 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 44 bytes --]

Tested x86_64-linux. Committed as obvious. 

[-- Attachment #2: patch.txt --]
[-- Type: text/x-patch, Size: 725 bytes --]

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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-06 12:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-06 12:05 [patch] Obvious fix for typo in gcc/real.c Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).