From 25a00742331933fa37711c1e802509f380fbaa59 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 28 Jun 1996 18:37:08 -0400 Subject: (asctoeg): `0.0eX' is zero, regardless of the exponent X. From-SVN: r12373 --- gcc/real.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gcc/real.c') diff --git a/gcc/real.c b/gcc/real.c index 3ebf8f3..435d0b5 100644 --- a/gcc/real.c +++ b/gcc/real.c @@ -4988,7 +4988,15 @@ asctoeg (ss, y, oprec) /* Exponent interpretation */ expnt: + /* 0.0eXXX is zero, regardless of XXX. Check for the 0.0. */ + for (k = 0; k < NI; k++) + { + if (yy[k] != 0) + goto read_expnt; + } + goto aexit; +read_expnt: esign = 1; exp = 0; ++s; -- cgit v1.1