[gs-cvs] rev 8014 - trunk/gs/toolbin/tests
alexcher at ghostscript.com
alexcher at ghostscript.com
Mon May 28 09:58:07 PDT 2007
Author: alexcher
Date: 2007-05-28 09:58:07 -0700 (Mon, 28 May 2007)
New Revision: 8014
Modified:
trunk/gs/toolbin/tests/fuzzy.c
Log:
Fix indeterministic behavior in fuzzy raster match that can cause premature
exit and miss all the differences. Encountered on GNU+Linux, i686, GCC 4.1.2.
Modified: trunk/gs/toolbin/tests/fuzzy.c
===================================================================
--- trunk/gs/toolbin/tests/fuzzy.c 2007-05-28 05:35:14 UTC (rev 8013)
+++ trunk/gs/toolbin/tests/fuzzy.c 2007-05-28 16:58:07 UTC (rev 8014)
@@ -309,6 +309,7 @@
}
image = (ImagePnm *)malloc (sizeof(ImagePnm));
image->f = f;
+ image->file_length = file_length(fileno(f));
return image;
}
@@ -364,7 +365,6 @@
image->super.raster = n_chan * ((width * bpp + 7) >> 3);
image->super.n_chan = n_chan;
image->super.bpp = bpp;
- image->file_length = file_length(fileno(image->f));
return 0;
}
More information about the gs-cvs
mailing list