Re: Generic query about bit opreation in case of 64bit OS.
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=coriolis-systems.com; h= subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=aug07; bh=XfiVMzojZetNE28RgZsZvtKjBtY=; b=ovwwg8HEz8O//Nry1o8Xdn3X7GVo snu5WBf5rYd+VuSL2hFmaVlNb404VycrKfYvfT1Ipkg+nZBoV/mo/QkPhaT+wIEa e8y9GmlYn2QHG+gsoAbvk8VrBtwXjRCzoeKdG3Oxwfa3bHT264KXiW8OmkS4kapR wIkI652ewEXg8l8= On 1 Jun 2010, at 13:10, Brian Bergstrand wrote:
"unsigned long" in LP64 is not 32bits, it is 64bits. Use "unsigned int" for 32bit storage in LP32 and LP64.
No, don't do that. Use uint32_t and #include <inttypes.h>. That way you're guaranteed to be using an appropriate type whatever the platform. Kind regards, Alastair -- http://alastairs-place.net _______________________________________________ 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)
-
Alastair Houghton