bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

portability fix for bison-1.75


From: Dieter
Subject: portability fix for bison-1.75
Date: Fri, 13 Jan 2006 10:25:46 +0000

A fix for portability between ILP32 and LP64.

FreeBSD 6.0
AMD64

tables.c: In function `table_grow':
tables.c:211: warning: int format, different type arg (arg 3)
tables.c:211: warning: int format, different type arg (arg 4)

Fix:

rcsdiff -r1.1 -u work/bison-1.75/src/tables.c
===================================================================
RCS file: work/bison-1.75/src/RCS/tables.c,v
retrieving revision 1.1
diff -u -r1.1 work/bison-1.75/src/tables.c
--- work/bison-1.75/src/tables.c        2006/01/13 18:13:32     1.1
+++ work/bison-1.75/src/tables.c        2006/01/13 18:15:29
@@ -207,8 +207,8 @@
     table_size *= 2;
 
   if (trace_flag & trace_resource)
-    fprintf (stderr, "growing table and check from: %d to %d\n",
-            old_size, table_size);
+    fprintf (stderr, "growing table and check from: %ld to %ld\n",
+            (long)old_size, (long)table_size);
 
   table = XREALLOC (table, base_t, table_size);
   check = XREALLOC (check, base_t, table_size);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]