[Plib-cvs] plib/src/psl psl.h,1.12,1.13 pslCodeGen.cxx,1.13,1.14
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-09-11 21:42:35
|
Update of /cvsroot/plib/plib/src/psl In directory usw-pr-cvs1:/tmp/cvs-serv24066 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.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- psl.h 8 Sep 2002 00:37:44 -0000 1.12 +++ psl.h 11 Sep 2002 21:42:32 -0000 1.13 @@ -99,7 +99,7 @@ { case PSL_INT : return (float) i ; case PSL_FLOAT : return f ; - case PSL_STRING : return atof( s ) ; + case PSL_STRING : return (float) atof( s ) ; case PSL_VOID : return 0.0f ; } return 0.0f ; @@ -186,7 +186,7 @@ switch ( t ) { case PSL_INT : i = atoi ( v ) ; return ; - case PSL_FLOAT : f = atof ( v ) ; return ; + case PSL_FLOAT : f = (float) atof ( v ) ; return ; case PSL_STRING : delete [] s ; s = ulStrDup ( v ) ; return ; Index: pslCodeGen.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/psl/pslCodeGen.cxx,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- pslCodeGen.cxx 8 Sep 2002 18:56:29 -0000 1.13 +++ pslCodeGen.cxx 11 Sep 2002 21:42:32 -0000 1.14 @@ -81,7 +81,7 @@ void pslCompiler::pushFloatConstant ( const char *c ) { - float f = atof ( c ) ; + float f = (float) atof ( c ) ; char *ff = (char *) & f ; pushCodeByte ( OPCODE_PUSH_FLOAT_CONSTANT ) ; |