From: "Markus F.X.J. Oberhumer" <markus@oberhumer.com>
To: git@vger.kernel.org
Subject: [PATCH] Fix ptrdiff_t vs. int
Date: Fri, 27 May 2005 15:20:52 +0200 [thread overview]
Message-ID: <42971EB4.2050403@oberhumer.com> (raw)
[-- 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++;
}
}
next reply other threads:[~2005-05-27 13:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-27 13:20 Markus F.X.J. Oberhumer [this message]
2005-05-27 13:51 ` [PATCH] Fix ptrdiff_t vs. int 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42971EB4.2050403@oberhumer.com \
--to=markus@oberhumer.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).