mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Fix build with gcc 4.2
Submitted by: pointyhat via kris/pav Nils Vogels <nivo@is-root.com>
This commit is contained in:
parent
7dd774612a
commit
b9e237260c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=195051
1 changed files with 29 additions and 0 deletions
29
java/jlint/files/patch-jlint.cc
Normal file
29
java/jlint/files/patch-jlint.cc
Normal file
|
@ -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);
|
Loading…
Add table
Reference in a new issue