git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix ptrdiff_t vs. int
@ 2005-05-27 13:20 Markus F.X.J. Oberhumer
  2005-05-27 13:51 ` Danjel McGougan
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Markus F.X.J. Oberhumer @ 2005-05-27 13:20 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 313 bytes --]

This trivial patch fixes an obvious ptrdiff_t vs. int mismatch. Which
makes we wonder why Linus isn't hitting this on his ppc64 - maybe it's
time to start using -Werror...

Signed-off-by: Markus F.X.J. Oberhumer <markus@oberhumer.com>

-- 
Markus Oberhumer, <markus@oberhumer.com>, http://www.oberhumer.com/






[-- Attachment #2: diff-tree.c.patch --]
[-- Type: text/x-patch, Size: 598 bytes --]

This trivial patch fixes an obvious ptrdiff_t vs. int mismatch.

Signed-off-by: Markus F.X.J. Oberhumer <markus@oberhumer.com>

Index: diff-tree.c
===================================================================
--- 1348af9952a1d26b2ad14ec8f433322fd79510f3/diff-tree.c  (mode:100644)
+++ 61dcf68d605a8d9204c24278dbdc73b4cf7ccc90/diff-tree.c  (mode:100644)
@@ -274,7 +274,7 @@
 			for (cp = header; *cp; cp = ep) {
 				ep = strchr(cp, '\n');
 				if (ep == 0) ep = cp + strlen(cp);
-				printf("%.*s%c", ep-cp, cp, 0);
+				printf("%.*s%c", (int) (ep-cp), cp, 0);
 				if (*ep) ep++;
 			}
 		}

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2005-05-29 20:20 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-27 13:20 [PATCH] Fix ptrdiff_t vs. int Markus F.X.J. Oberhumer
2005-05-27 13:51 ` Danjel McGougan
2005-05-27 14:02 ` Morten Welinder
2005-05-27 16:25 ` H. Peter Anvin
2005-05-27 17:18 ` Linus Torvalds
2005-05-27 17:25   ` Linus Torvalds
2005-05-27 17:42     ` Markus F.X.J. Oberhumer
2005-05-27 17:58       ` H. Peter Anvin
2005-05-27 18:13       ` Linus Torvalds
2005-05-27 18:20     ` Junio C Hamano
2005-05-28  4:05       ` [PATCH] Adjust diff-helper to diff-tree -v -z changes Junio C Hamano
2005-05-29 18:31         ` Linus Torvalds
2005-05-29 20:21           ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).