[gs-cvs] rev 6982 - trunk/gs/src
leonardo at ghostscript.com
leonardo at ghostscript.com
Thu Aug 10 00:37:46 PDT 2006
Author: leonardo
Date: 2006-08-10 00:37:45 -0700 (Thu, 10 Aug 2006)
New Revision: 6982
Modified:
trunk/gs/src/gdevdflt.c
trunk/gs/src/zfunc0.c
Log:
Fix : MSVC8 compiler warnings.
EXPECTED DIFFERENCES :
None.
Modified: trunk/gs/src/gdevdflt.c
===================================================================
--- trunk/gs/src/gdevdflt.c 2006-08-09 17:48:58 UTC (rev 6981)
+++ trunk/gs/src/gdevdflt.c 2006-08-10 07:37:45 UTC (rev 6982)
@@ -691,15 +691,15 @@
pmat->xy = -ss_res;
pmat->yx = -fs_res;
pmat->yy = 0;
- pmat->tx = dev->width;
- pmat->ty = dev->height;
+ pmat->tx = (float)dev->width;
+ pmat->ty = (float)dev->height;
break;
case 2: /* 180 degrees */
pmat->xx = -fs_res;
pmat->xy = 0;
pmat->yx = 0;
pmat->yy = ss_res;
- pmat->tx = dev->width;
+ pmat->tx = (float)dev->width;
pmat->ty = 0;
break;
case 3: /* 270 degrees */
@@ -717,7 +717,7 @@
pmat->yx = 0;
pmat->yy = -ss_res;
pmat->tx = 0;
- pmat->ty = dev->height;
+ pmat->ty = (float)dev->height;
/****** tx/y is WRONG for devices with ******/
/****** arbitrary initial matrix ******/
break;
Modified: trunk/gs/src/zfunc0.c
===================================================================
--- trunk/gs/src/zfunc0.c 2006-08-09 17:48:58 UTC (rev 6981)
+++ trunk/gs/src/zfunc0.c 2006-08-10 07:37:45 UTC (rev 6982)
@@ -39,8 +39,9 @@
int code;
*(gs_function_params_t *) & params = *mnDR;
- params.Encode = params.Decode = params.Size =
- params.pole = params.array_step = params.stream_step = NULL;
+ params.Encode = params.Decode = NULL;
+ params.pole = NULL;
+ params.Size = params.array_step = params.stream_step = NULL;
if ((code = dict_find_string(op, "DataSource", &pDataSource)) <= 0)
return (code < 0 ? code : gs_note_error(e_rangecheck));
switch (r_type(pDataSource)) {
More information about the gs-cvs
mailing list