|
From: Herton R. K. <he...@us...> - 2005-04-04 23:54:10
|
Update of /cvsroot/kimageprocess/kimageprocess/testclass In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14461/testclass Modified Files: testclass.c Log Message: - Fixing some more bugs. Index: testclass.c =================================================================== RCS file: /cvsroot/kimageprocess/kimageprocess/testclass/testclass.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- testclass.c 4 Apr 2005 23:39:30 -0000 1.10 +++ testclass.c 4 Apr 2005 23:54:02 -0000 1.11 @@ -64,6 +64,7 @@ *numPatterns = -1; inputValues = NULL; outputValues = NULL; + tok = yylex(); while (tok != EOF) { switch(tok) @@ -92,7 +93,7 @@ netLoadFail(CHECK_ERROR, fileName); if (inputValues == NULL) { - inputValues = (void *) malloc(sizeof(void) * *numPatterns); + inputValues = (float *) malloc(sizeof(float) * *numPatterns); if (inputValues == NULL) fatal(errno); for (i = 0; i < *numPatterns; i++) @@ -109,7 +110,7 @@ } if (outputValues == NULL) { - outputValues = (void *) malloc(sizeof(void) * *numPatterns); + outputValues = (float *) malloc(sizeof(float) * *numPatterns); if (outputValues == NULL) fatal(errno); for (i = 0; i < *numPatterns; i++) @@ -144,6 +145,7 @@ default: netLoadFail(PARSER_ERROR, fileName); } + tok = yylex(); } } |