aboutsummaryrefslogtreecommitdiffstats
path: root/java/jlint
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-07-06 14:47:41 +0800
committermiwi <miwi@FreeBSD.org>2007-07-06 14:47:41 +0800
commitbf9ba306823fcb626c60fccced00dad228adebec (patch)
tree6cf2ad4f9882ff231ee5a8062f3e5aa6231bf336 /java/jlint
parent6fd8743581e86a4a3ae63e8cc71b26b41e74cfd1 (diff)
downloadfreebsd-ports-graphics-bf9ba306823fcb626c60fccced00dad228adebec.tar.gz
freebsd-ports-graphics-bf9ba306823fcb626c60fccced00dad228adebec.tar.zst
freebsd-ports-graphics-bf9ba306823fcb626c60fccced00dad228adebec.zip
- Fix build with gcc 4.2
Submitted by: pointyhat via kris/pav Nils Vogels <nivo@is-root.com>
Diffstat (limited to 'java/jlint')
-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 00000000000..1c8d7e6a291
--- /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);