Ben Haller (bhcocoa...@sticksoftware.com) on 2010-04-17 09:06 said: >>> This should cast "individual" to void* before doing the pointer >>> arithmetic, of course. >> >> And of course by "void*" you meant "uint8_t*". Pointer arithmetic >> is undefined on voids... it happens to be supported by gcc & clang >> but it's just as easy to write correct code. > > Ah, interesting. Learn a new thing every day. The compiler didn't >even warn.
You need -Wpointer-arith. Sean -- "Freedom is never voluntarily given by the oppressor; it must be demanded by the oppressed." - Martin Luther King _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com