[Plib-cvs] plib/src/psl psl.h,1.15,1.16 pslCodeGen.cxx,1.22,1.23
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-09-14 15:47:37
|
Update of /cvsroot/plib/plib/src/psl In directory usw-pr-cvs1:/tmp/cvs-serv2657 Modified Files: psl.h pslCodeGen.cxx Log Message: Fixed some compiler warnings with ICC Index: psl.h =================================================================== RCS file: /cvsroot/plib/plib/src/psl/psl.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- psl.h 14 Sep 2002 06:23:27 -0000 1.15 +++ psl.h 14 Sep 2002 15:47:33 -0000 1.16 @@ -87,7 +87,7 @@ { case PSL_INT : return i ; case PSL_FLOAT : return (int) f ; - case PSL_STRING : return strtol(s,NULL,0) ; + case PSL_STRING : return (int) strtol(s,NULL,0) ; case PSL_VOID : return 0 ; } return 0 ; @@ -185,7 +185,7 @@ { switch ( t ) { - case PSL_INT : i = strtol ( v, NULL, 0 ) ; return ; + case PSL_INT : i = (int) strtol ( v, NULL, 0 ) ; return ; case PSL_FLOAT : f = (float) atof ( v ) ; return ; case PSL_STRING : delete [] s ; s = ulStrDup ( v ) ; Index: pslCodeGen.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/psl/pslCodeGen.cxx,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- pslCodeGen.cxx 14 Sep 2002 06:23:27 -0000 1.22 +++ pslCodeGen.cxx 14 Sep 2002 15:47:33 -0000 1.23 @@ -80,7 +80,7 @@ void pslCompiler::pushIntConstant ( const char *c ) { - int i = strtol ( c, NULL, 0 ) ; + int i = (int) strtol ( c, NULL, 0 ) ; pushIntConstant ( i ) ; } |