linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix compilation warning on 64 bits platforms
@ 2007-05-21  0:04 Damien Lespiau
  2007-05-21  0:28 ` Josh Triplett
  0 siblings, 1 reply; 6+ messages in thread
From: Damien Lespiau @ 2007-05-21  0:04 UTC (permalink / raw)
  To: linux-sparse; +Cc: Damien Lespiau

Fix: format '%d' expects type 'int', but argument 2 has type 'long int'

Signed-off-by: Damien Lespiau <damien.lespiau@gmail.com>
---
 linearize.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/linearize.c b/linearize.c
index d428d92..6c9fae4 100644
--- a/linearize.c
+++ b/linearize.c
@@ -461,7 +461,7 @@ const char *show_instruction(struct instruction *insn)
 	}
 
 	if (buf >= buffer + sizeof(buffer))
-		die("instruction buffer overflowed %d\n", buf - buffer);
+		die("instruction buffer overflowed %d\n", (int)(buf - buffer));
 	do { --buf; } while (*buf == ' ');
 	*++buf = 0;
 	return buffer;
-- 
1.5.2.rc3.87.g404fd

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

end of thread, other threads:[~2007-05-22 21:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-21  0:04 [PATCH] Fix compilation warning on 64 bits platforms Damien Lespiau
2007-05-21  0:28 ` Josh Triplett
2007-05-21  0:33   ` Al Viro
2007-05-21  0:36     ` Josh Triplett
2007-05-22 18:06       ` Damien Lespiau
2007-05-22 21:20         ` Josh Triplett

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).