$OpenBSD: patch-jlint_cc,v 1.4 2015/06/17 19:06:58 jasper Exp $
--- jlint.cc.orig	Tue Jan 11 03:42:33 2011
+++ jlint.cc	Wed Jun 17 21:04:30 2015
@@ -138,7 +138,7 @@ int get_type(utf_string const& str) 
 
 void format_message(int code, utf_string const& file, int line, __VALIST ap)
 {
-  static int loop_id;
+  static long loop_id;
   static message_node *first, *last;
   static char* compound_message;
   const void* parameter[MAX_MSG_PARAMETERS];
@@ -151,7 +151,7 @@ void format_message(int code, utf_string const& file, 
     if (compound_message != NULL
         && ((loop_id != 0 
              && ((code != msg_loop && code != msg_sync_loop)
-                 || (int)(long)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 @@ void format_message(int code, utf_string const& file, 
                            name.as_asciz()); 
             break;
           case 'd': // integer
-            dst += sprintf(dst, "%d", (int)(long)parameter[index]);  
+            dst += sprintf(dst, "%d", (long)parameter[index]);  
             break;
           default:
             assert(false/*bad message parameter format*/);
@@ -262,7 +262,7 @@ void format_message(int code, utf_string const& file, 
               compound_message = strdup(his_buf);
               first = last = new message_node(msg_buf);
               if (code != msg_wait) { 
-                loop_id = (int)(long)parameter[2];
+                loop_id = (long)parameter[2];
               }
             } else if (!message_node::find(his_buf)) { 
               fprintf(stdout, "%s\n", msg_buf);
