From: Linus Torvalds Date: Sat, 15 Aug 2009 18:43:11 GMT Subject: Re: [PATCH] block-sha1/sha1.c: silence compiler complaints by casting void* to uintptr_t Message-ID: In-Reply-To: <7v63cp22cc.fsf@alter.siamese.dyndns.org> On Fri, 14 Aug 2009, Junio C Hamano wrote: > > From: Brandon Casey > Date: Fri, 14 Aug 2009 17:52:15 -0500 > Subject: [PATCH] block-sha1/sha1.c: silence compiler complaints by casting void * to char * > > Some compilers produce errors when arithmetic is attempted on pointers to > void. We want computations done on byte addresses, so cast them to char * > to work them around. > > Signed-off-by: Brandon Casey > Signed-off-by: Junio C Hamano Unnecessary outer parentheses, but ack anyway. Linus