summaryrefslogtreecommitdiff
path: root/lib/bitset.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-05-25 19:48:00 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-05-25 19:48:00 +0000
commit4d1801f1a888fc5687ae103fb76935ef0d24cbaf (patch)
tree771f7b1fa75409ffe21f24b86fb8950bfa299299 /lib/bitset.c
parent85ac3861e7c7de8877562ac0dbb1233d91c705c2 (diff)
downloadbison-4d1801f1a888fc5687ae103fb76935ef0d24cbaf.tar.gz
Fix BeOS, FreeBSD, MacOS porting problems reported by Bruno Haible.
* lib/bitset.c (bitset_print): Don't assume size_t can be printed with %d format. * lib/ebitset.c (min, max): Undef before defining. * lib/vbitset.c (min, max): Likewise. * lib/subpipe.c (create_subpipe): Save local variables in case vfork clobbers them. * tests/synclines.at (AT_SYNCLINES_COMPILE): Add support for the error message syntax used by gcc-4.0.
Diffstat (limited to 'lib/bitset.c')
-rw-r--r--lib/bitset.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bitset.c b/lib/bitset.c
index aaf1e87f..0cc3ee53 100644
--- a/lib/bitset.c
+++ b/lib/bitset.c
@@ -1,5 +1,5 @@
/* General bitsets.
- Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
Contributed by Michael Hayes (m.hayes@elec.canterbury.ac.nz).
This program is free software; you can redistribute it and/or modify
@@ -111,7 +111,7 @@ bitset_type_choose (bitset_bindex n_bits ATTRIBUTE_UNUSED, unsigned int attr)
/* Choose the type of bitset. Note that sometimes we will be asked
for a zero length fixed size bitset. */
-
+
/* If no attributes selected, choose a good compromise. */
if (!attr)
return BITSET_VARRAY;
@@ -307,7 +307,7 @@ bitset_print (FILE *file, bitset bset, bool verbose)
pos = 0;
}
- fprintf (file, "%d ", i);
+ fprintf (file, "%lu ", (unsigned long int) i);
pos += 1 + (i >= 10) + (i >= 100);
};