[gs-cvs] gs/src
Ray Johnston
ray at casper.ghostscript.com
Thu Aug 15 17:32:59 PDT 2002
Update of /cvs/ghostscript/gs/src
In directory casper:/home/ray/gshead/src
Modified Files:
gxstroke.c
Log Message:
Regression testing showed a difference when built with gcc 2.95.4 between
-DDEBUG and non DEBUG builds. This showed up as some minor pixel diffs.
Change to 'double' from 'float' for some precision sensitive variables
so that -DDEBUG matches non DEBUG results.
Index: gxstroke.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gxstroke.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- gxstroke.c 16 Jun 2002 05:48:56 -0000 1.5
+++ gxstroke.c 16 Aug 2002 00:32:56 -0000 1.6
@@ -848,11 +848,11 @@
p_ptr pi)
{ /* return intersection here */
/* We don't have to do any scaling, the factors all work out right. */
- float u1 = pd1->x, v1 = pd1->y;
- float u2 = pd2->x, v2 = pd2->y;
+ double u1 = pd1->x, v1 = pd1->y;
+ double u2 = pd2->x, v2 = pd2->y;
double denom = u1 * v2 - u2 * v1;
- float xdiff = pp2->x - pp1->x;
- float ydiff = pp2->y - pp1->y;
+ double xdiff = pp2->x - pp1->x;
+ double ydiff = pp2->y - pp1->y;
double f1;
double max_result = any_abs(denom) * (double)max_fixed;
More information about the gs-cvs
mailing list