Thread (8 messages) flat view 8 messages, 3 authors, 2016-06-15

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

From: Karsten Blees <hidden>
Date: 2016-06-15 22:59:28

Possibly related (same subject, not in this thread)

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...)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help