Date: Fri, 13 Jan 2006 10:25:46 +0000 From: Dieter <freebsd@sopwith.solgatos.com> To: freebsd-ports@freebsd.org, bug-bison@gnu.org Subject: portability fix for bison-1.75 Message-ID: <200601131825.SAA21164@sopwith.solgatos.com>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601131825.SAA21164>