wineps.drv: Remove unneeded casts

Andrew Talbot andrew.talbot at talbotville.com
Sat Feb 2 11:27:14 CST 2008


Changelog:
    wineps.drv: Remove unneeded casts.

diff --git a/dlls/wineps.drv/driver.c b/dlls/wineps.drv/driver.c
index b4f98fb..42e537a 100644
--- a/dlls/wineps.drv/driver.c
+++ b/dlls/wineps.drv/driver.c
@@ -550,8 +550,8 @@ DWORD PSDRV_DeviceCapabilities(LPSTR lpszDriver, LPCSTR lpszDevice, LPCSTR lpszP
       LONG *lp = (LONG*)lpszOutput;
 
       if(lpszOutput != NULL) {
-	lp[0] = (LONG)pi->ppd->DefaultResolution;
-	lp[1] = (LONG)pi->ppd->DefaultResolution;
+	lp[0] = pi->ppd->DefaultResolution;
+	lp[1] = pi->ppd->DefaultResolution;
       }
       return 1;
     }
diff --git a/dlls/wineps.drv/type1afm.c b/dlls/wineps.drv/type1afm.c
index dd79eee..a570c6c 100644
--- a/dlls/wineps.drv/type1afm.c
+++ b/dlls/wineps.drv/type1afm.c
@@ -861,7 +861,7 @@ static VOID Unicodify(AFM *afm, OLD_AFMMETRICS *metrics)
 	{
 	    if (metrics[i].C >= 0x20 && metrics[i].C <= 0xff)
 	    {
-	    	metrics[i].UV = ((LONG)(metrics[i].C)) | 0xf000L;
+	    	metrics[i].UV = metrics[i].C | 0xf000L;
 	    }
 	    else
 	    {



More information about the wine-patches mailing list