• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Folding in a byte
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/


References: 
 >Folding in a byte (From: David Remahl <email@hidden>)

  • Prev by Date: Re: NSDocument-based application with NSTextView
  • Next by Date: What opens .app extension?
  • Previous by thread: Folding in a byte
  • Next by thread: NSDocument-based application with NSTextView
  • Index(es):
    • Date
    • Thread