Re: Folding in a byte
Re: Folding in a byte
- Subject: Re: Folding in a byte
- From: Markus Hitter <email@hidden>
- Date: Thu, 11 Oct 2001 19:32:56 +0200
Am Donnerstag, 11. Oktober 2001 um 14:57 schrieb David Remahl:
pRawBitmapData = (unsigned long*) *hRawBitmapData;
pRawBitmapDataEnd = pRawBitmapData + pixelsWide * pixelsWide;
this is inconsitent:
Either your rawBitmapData is a bunch of bytes, then the cast in
the first line is wrong.
Or your rawBitmapData is a bunch of longs, then a "*
sizeof(unsigned long)" is missing in the second line.
Markus
P.S.: for future compatibility, you might want to check wether a
long is indeed 4 bytes or replace the longs with a struct of
four bytes (better).
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/