From f7fe59feaa27eecd97449b595ce3a7dfa7ba039e Mon Sep 17 00:00:00 2001 From: gkm Date: Thu, 24 Aug 2000 20:04:10 +0000 Subject: * cppfiles.c (actual_directory): Don't write beyond `dir' when it contains "". * real.c (asctoeg): Stay within bounds of etens[][]. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35944 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/real.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gcc/real.c') diff --git a/gcc/real.c b/gcc/real.c index eb8736c72cd..6c09f753ce9 100644 --- a/gcc/real.c +++ b/gcc/real.c @@ -5132,9 +5132,9 @@ asctoeg (ss, y, oprec) { unsigned EMUSHORT yy[NI], xt[NI], tt[NI]; int esign, decflg, sgnflg, nexp, exp, prec, lost; - int k, trail, c, rndsav; + int i, k, trail, c, rndsav; EMULONG lexp; - unsigned EMUSHORT nsign, *p; + unsigned EMUSHORT nsign; char *sp, *s, *lstr; int base = 10; @@ -5418,14 +5418,14 @@ read_expnt: nexp -= 4096; } } - p = &etens[NTEN][0]; emov (eone, xt); exp = 1; + i = NTEN; do { if (exp & nexp) - emul (p, xt, xt); - p -= NE; + emul (etens[i], xt, xt); + i--; exp = exp + exp; } while (exp <= MAXP); -- cgit v1.2.1