aboutsummaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-07-06 06:47:41 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-07-06 06:47:41 +0000
commitb9e237260cf0e15e231b5d939400865dbe60cf4e (patch)
tree251f5a37ebd08f17a8a18480e2fbf31e4ef2dd38 /java
parent7dd774612ad8f32943b1d96c0f09d54fe2dfb7b7 (diff)
downloadports-b9e237260cf0e15e231b5d939400865dbe60cf4e.tar.gz
ports-b9e237260cf0e15e231b5d939400865dbe60cf4e.zip
Notes
Diffstat (limited to 'java')
-rw-r--r--java/jlint/files/patch-jlint.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/java/jlint/files/patch-jlint.cc b/java/jlint/files/patch-jlint.cc
new file mode 100644
index 000000000000..1c8d7e6a291c
--- /dev/null
+++ b/java/jlint/files/patch-jlint.cc
@@ -0,0 +1,29 @@
+--- jlint.cc.orig 2007-07-06 08:26:42.000000000 +0000
++++ jlint.cc 2007-07-06 08:29:08.000000000 +0000
+@@ -151,7 +151,7 @@
+ if (compound_message != NULL
+ && ((loop_id != 0
+ && ((code != msg_loop && code != msg_sync_loop)
+- || (int)parameter[2] != loop_id))
++ || (long)parameter[2] != loop_id))
+ || (loop_id == 0 && code != msg_wait_path)))
+ {
+ if (!message_node::find(compound_message)) {
+@@ -226,7 +226,7 @@
+ name.as_asciz());
+ break;
+ case 'd': // integer
+- dst += sprintf(dst, "%d", (int)parameter[index]);
++ dst += sprintf(dst, "%d", (long)parameter[index]);
+ break;
+ default:
+ assert(false/*bad message parameter format*/);
+@@ -262,7 +262,7 @@
+ compound_message = strdup(his_buf);
+ first = last = new message_node(msg_buf);
+ if (code != msg_wait) {
+- loop_id = (int)parameter[2];
++ loop_id = (long)parameter[2];
+ }
+ } else if (!message_node::find(his_buf)) {
+ fprintf(stdout, "%s\n", msg_buf);