This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] Patch for PR 14055
- From: Feng Wang <wf_cs at yahoo dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: Bud Davis <bdavis9659 at comcast dot net>, gfortran <fortran at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 11 Mar 2004 08:56:21 +0800 (CST)
- Subject: Re: [gfortran] Patch for PR 14055
--- Andreas Schwab <schwab@suse.de> 的正文:> Feng Wang <wf_cs@yahoo.com>
writes:
>
> >> --- 2426,2440 ----
> >> gfc_convert_integer (const char *buffer, int kind, int radix, locus *
> >> where)
> >> {
> >> gfc_expr *e;
> >> + const char *t;
> >>
> >> e = gfc_constant_result (BT_INTEGER, kind, where);
> >> ! /* a leading plus is allowed, but not by mpz_set_str */
> >> ! if (buffer[0] == '+')
> >> ! t = buffer + 1;
> >
> > I think this should add an explicit type conversion to get rid off the
> > compiling warnings. As: t = (char *)(buffer + 1);
>
> ??? t is a const char *, like buffer.
Hmmm, yes. It's my fault. I missed the "const" porting the patch.
Feng Wang
_________________________________________________________
Do You Yahoo!?
完全免费的雅虎电邮,马上注册获赠额外60兆网络存储空间
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.mail.yahoo.com