Wrong casts being used

Caused outside contributor to be unable to build
This commit is contained in:
mkaply%us.ibm.com 2000-10-31 14:49:46 +00:00
parent 3ade335863
commit 8bd119d141

View File

@ -271,7 +271,7 @@ nsresult nsOffscreenSurface::Lock( PRInt32 aX, PRInt32 aY,
mYPels = mInfoHeader->cy - aY - aHeight;
mScans = aHeight;
rc = GpiQueryBitmapBits( mPS, mYPels, mScans, (char*) mBits,
rc = GpiQueryBitmapBits( mPS, mYPels, mScans, (PBYTE) mBits,
(PBITMAPINFO2) mInfoHeader);
if( rc != mInfoHeader->cy) PMERROR( "GpiQueryBitmapBits");
@ -290,7 +290,7 @@ nsresult nsOffscreenSurface::Lock( PRInt32 aX, PRInt32 aY,
nsresult nsOffscreenSurface::Unlock()
{
long rc = GpiSetBitmapBits( mPS, mYPels, mScans, (char*) mBits,
long rc = GpiSetBitmapBits( mPS, mYPels, mScans, (PBYTE) mBits,
(PBITMAPINFO2) mInfoHeader);
if( rc == GPI_ALTERROR) PMERROR( "GpiSetBitmapBits");