[kaffe] CVS kaffe (robilad): Warnings fixed in code.c
Kaffe CVS
cvs-commits at kaffe.org
Sat Nov 6 08:03:37 PST 2004
PatchSet 5405
Date: 2004/11/06 15:59:43
Author: robilad
Branch: HEAD
Tag: (none)
Log:
Warnings fixed in code.c
2004-11-06 Eric Anholt <eta at lclark.edu>
* kaffe/kaffevm/code.c:
Cast a uintp to a long and use %ld to print instead of %d.
Members:
ChangeLog:1.2954->1.2955
kaffe/kaffevm/code.c:1.16->1.17
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2954 kaffe/ChangeLog:1.2955
--- kaffe/ChangeLog:1.2954 Sat Nov 6 02:15:42 2004
+++ kaffe/ChangeLog Sat Nov 6 15:59:43 2004
@@ -1,5 +1,10 @@
2004-11-06 Eric Anholt <eta at lclark.edu>
+ * kaffe/kaffevm/code.c:
+ Cast a uintp to a long and use %ld to print instead of %d.
+
+2004-11-06 Eric Anholt <eta at lclark.edu>
+
* kaffe/kaffeh/mem.c:
Add a missing initializer to quiet the compiler.
Index: kaffe/kaffe/kaffevm/code.c
diff -u kaffe/kaffe/kaffevm/code.c:1.16 kaffe/kaffe/kaffevm/code.c:1.17
--- kaffe/kaffe/kaffevm/code.c:1.16 Thu Aug 19 19:29:02 2004
+++ kaffe/kaffe/kaffevm/code.c Sat Nov 6 15:59:45 2004
@@ -155,10 +155,10 @@
JAVA_LANG(ClassFormatError),
"%s "
"(Method \"%s\" has invalid pc, "
- "%d, for line number %d)",
+ "%ld, for line number %d)",
CLASS_CNAME(m->class),
m->name->data,
- lines->entry[i].start_pc,
+ (long)lines->entry[i].start_pc,
lines->entry[i].line_nr);
return false;
}
More information about the kaffe
mailing list