site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=mooseyard.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s= mooseyard.com; bh=RAEL8QETp0wesxTPk7HT5pHDEts=; b=MsnJv+OV09IR3N 2vKxZbfP0TYjGE4QGeQb9JNeMGTQ0cR7wp1j2S4u0bFXPHrkptQmBP26/9N3c1yu D7SVwPddx63K4vZPVeUTDYxMcbzbNy8HYYFdN5NZgwN5yZq8l/RvONeXIykB7K25 NXDE3CAxcmxI0vuqIugtTmWfcKETM= Domainkey-signature: a=rsa-sha1; c=nofws; d=mooseyard.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; q=dns; s= mooseyard.com; b=Yy2g5NvT6is09Ra9t6kk4qWZ5lvG1pK7KnKgRqzUitp4k4V 9EpFIc0tnliUmUWOkxzu46FeolyR+sR0f/D8JS7HGX9PUHz9qXBlV87YPXxcmfrw b3sg45LwThLxmmnF5jEMxqwF8QV/Vkf+WPjyOBSlsr80sqeqvLWuDbiYuW3I= On Jun 23, 2010, at 7:53 AM, Arnab Ganguly wrote:
int result = (((Test *) 8)->a) - 8;
You could fix this by adding an &: int result = &(((Test *) 8)->a) - 8; but this construct is so ugly and hard to understand that you really should use offsetof( ) instead. —Jens _______________________________________________ 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