winex11.drv: Fix compilation warnings in 64-bit mode.
diff --git a/dlls/winex11.drv/xfont.c b/dlls/winex11.drv/xfont.c
index b53da7e..0ef18fc 100644
--- a/dlls/winex11.drv/xfont.c
+++ b/dlls/winex11.drv/xfont.c
@@ -2201,9 +2201,10 @@
{
if( offset > length ||
pfi->cptable >= (UINT16)X11DRV_CPTABLE_COUNT ||
- (int)(pfi->next) != j++ )
+ PtrToInt(pfi->next) != j++ )
{
- TRACE("error: offset=%ld length=%ld cptable=%d pfi->next=%d j=%d\n",(long)offset,(long)length,pfi->cptable,(int)pfi->next,j-1);
+ TRACE("error: offset=%ld length=%ld cptable=%d pfi->next=%p j=%d\n",
+ (long)offset, (long)length, pfi->cptable, pfi->next, j-1);
goto fail;
}
@@ -2332,7 +2333,7 @@
fi = *pfi;
fi.df.dfFace = NULL;
- fi.next = (fontInfo*)k; /* loader checks this */
+ fi.next = IntToPtr(k); /* loader checks this */
j = write( fd, &fi, sizeof(fi) );
k++;