Skip to contentSkip to conversation

Fix compilation warning on 64 bits platforms v2

PATCH New Damien Lespiau 1 participant 1 message May 22, 2007 Sparse checker

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compilation warning on 64 bits platforms v2

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

---
 linearize.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
linearize.c +1 -1
index d428d92..c38dd7d 100644
@@ -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 %td\n", buf - buffer);
 	do { --buf; } while (*buf == ' ');
 	*++buf = 0;
 	return buffer;
Signature · 1 line
1.5.2.rc3.87.g404fd