This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Gfortran, patch] Fix simplify char and ichar intrinsic


On Fri, Jan 06, 2006 at 06:29:10PM +0800, Feng Wang wrote:
> 
> > Before applying the patch, we get
> > ichar (char (255)) = -1
> > 
> > Fortran ChangeLog entry:
> > 2006-01-06  Feng Wang  <fengwang@nudt.edu.cn>
> > 
> > 	* simplify.c (gfc_simplify_char): Use UCHAR_MAX instead of literal
> > 	constant.
> > 	(gfc_simplify_ichar): Get the result from unsinged char and in the
> > 	range 0 to UCHAR_MAX instead of CHAR_MIN to CHAR_MAX.
> > Testsuite ChangeLog entry:
> > 2006-01-06  Feng Wang  <fengwang@nudt.edu.cn>
> > 
> > 	* gfortran.dg/intrinsic_i_char.f90: New test.
> > 

This is OK.  But, please name the testcase ichar_2.f90.
We already have ichar_1.f90.

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]