site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Some Apple code includes lines like: mach_port_t masterPort = NULL; When I compile this, I get a warning about converting a pointer to an integer without a cast. Sure enough, mach_port_t is an unsigned int. In fact, most of the things used like this seem to be unsigned ints, which are only passed around as cookies returned by mach calls. So. Why are they always initialized as though they were pointers? -s _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
seebs@plethora.net