Subject: Re: What's cooking in git.git (Dec 2013, #02; Fri, 6)

From: Karsten Blees <[email-masked]>
Date: Wed, 18 Dec 2013 15:05:04 +0100

Am 18.12.2013 14:10, schrieb Karsten Blees:
> +				printf("sizeof(pointer+int) (%u) is not a "
> +				       "multiple of sizeof(pointer) (%u)!\n",
> +				       sizeof(struct pointer_int),
> +				       sizeof(void *));

Should be:
-				       sizeof(struct pointer_int),
-				       sizeof(void *));
+				       (unsigned) sizeof(struct pointer_int),
+				       (unsigned) sizeof(void *));

(sizeof() is 'unsigned int' on 32-bit and 'long unsigned int' on 64-bit; without the cast, "%u" produces warnings on 64-bit and "%lu" on 32-bit...)