mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 15:25:32 +00:00
winex11.drv: Fix compilation warnings in 64-bit mode.
This commit is contained in:
parent
edbc6e7b8a
commit
4978194fde
|
@ -2201,9 +2201,10 @@ static BOOL XFONT_ReadCachedMetrics( int fd, int res, unsigned x_checksum, int x
|
|||
{
|
||||
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 @@ static BOOL XFONT_WriteCachedMetrics( int fd, unsigned x_checksum, int x_count,
|
|||
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++;
|
||||
|
|
Loading…
Reference in a new issue