|
From: Herton R. K. <he...@us...> - 2005-04-04 23:39:41
|
Update of /cvsroot/kimageprocess/kimageprocess/testclass In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10356/testclass Modified Files: testclass.c Log Message: - Fixing testclass compiling errors. Index: testclass.c =================================================================== RCS file: /cvsroot/kimageprocess/kimageprocess/testclass/testclass.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- testclass.c 1 Apr 2005 05:22:13 -0000 1.9 +++ testclass.c 4 Apr 2005 23:39:30 -0000 1.10 @@ -110,7 +110,7 @@ if (outputValues == NULL) { outputValues = (void *) malloc(sizeof(void) * *numPatterns); - if (expected == NULL) + if (outputValues == NULL) fatal(errno); for (i = 0; i < *numPatterns; i++) outputValues[i] = NULL; @@ -119,7 +119,7 @@ for (i = 0; i < *numPatterns; i++) { outputValues[i] = (float *) malloc(sizeof(float) * *numOutputUnits); - if (expected[i] == NULL) + if (outputValues[i] == NULL) fatal(errno); } } |