[GME-commit] GMESRC/GME/ConstraintManager OCLTypeExBasic.cpp,1.15,1.16

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Mon Aug 23 18:25:51 CDT 2004


Update of /var/lib/gme/GMESRC/GME/ConstraintManager
In directory braindrain:/tmp/cvs-serv30667

Modified Files:
	OCLTypeExBasic.cpp 
Log Message:
toInteger corrected

CVS User: bogyom

Index: OCLTypeExBasic.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/GME/ConstraintManager/OCLTypeExBasic.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** OCLTypeExBasic.cpp	18 May 2004 13:30:58 -0000	1.15
--- OCLTypeExBasic.cpp	23 Aug 2004 22:25:48 -0000	1.16
***************
*** 236,240 ****
  			DECL_STRING( strThis, GetThis() );
  			Trim( strThis );
! 			for ( int i = 0 ; i < strThis.length() ; i ++ )
  				if ( strThis[ i ] < '0' || strThis[ i ] > '9' )
  					ThrowException( "String cannot be converted to ocl::Integer." );
--- 236,245 ----
  			DECL_STRING( strThis, GetThis() );
  			Trim( strThis );
! 			int i = 0;
! 			if (strThis[ i ] == '-'  ||  strThis[ i ] == '+')
! 				i++;
! 			if (i >= strThis.length())
! 				ThrowException( "String cannot be converted to ocl::Integer." );
! 			for ( ; i < strThis.length() ; i ++ )
  				if ( strThis[ i ] < '0' || strThis[ i ] > '9' )
  					ThrowException( "String cannot be converted to ocl::Integer." );



More information about the GME-commit mailing list