mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 14:53:03 +00:00
Use the correct conversion specifier for size_t.
Reported by Jim Meyering. * src/Sbitset.h (SBITSET__INDEX__CONVERSION_SPEC): New, "zu" because Sbitset__Index is size_t. * src/Sbitset.c (Sbitset__fprint): Use it instead of %d.
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
|
||||
typedef char *Sbitset;
|
||||
typedef size_t Sbitset__Index;
|
||||
#define SBITSET__INDEX__CONVERSION_SPEC "zu"
|
||||
|
||||
#define Sbitset__nbytes(NBITS) (((NBITS)+7)/8)
|
||||
#define Sbitset__byteAddress(SELF, INDEX) (((SELF) + (INDEX)/8))
|
||||
|
||||
Reference in New Issue
Block a user