Re: [PATCH] block-sha1/sha1.c: silence compiler complaints by casting void* to uintptr_t
On Fri, 14 Aug 2009, Junio C Hamano wrote:
Show 11 quoted lines
>
> From: Brandon Casey <drafnel@gmail.com>
> 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 <casey@nrlssc.navy.mil>
> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Unnecessary outer parentheses, but ack anyway.
Linus