X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/91928c791fa9137dedd29d8453a67e11a4053f8b..393cf1d9803c3dfda0fbb8add9bc5cb9b1f6f07b:/crc-mktab.c diff --git a/crc-mktab.c b/crc-mktab.c index def5361..a3ba430 100644 --- a/crc-mktab.c +++ b/crc-mktab.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: crc-mktab.c,v 1.2 2000/10/08 11:07:21 mdw Exp $ + * $Id: crc-mktab.c,v 1.3 2001/01/20 12:06:01 mdw Exp $ * * Build CRC tables * @@ -30,6 +30,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: crc-mktab.c,v $ + * Revision 1.3 2001/01/20 12:06:01 mdw + * Define flags with macros, to ensure unsignedness. + * * Revision 1.2 2000/10/08 11:07:21 mdw * With no arguments, give an error rather than spewing a big table at the * user. @@ -66,11 +69,9 @@ static const char *type = 0; static const char *inc = 0; static FILE *fp; -enum { - f_bogus = 1, - f_ctab = 2, - f_reverse = 4 -}; +#define f_bogus 1u +#define f_ctab 2u +#define f_reverse 4u #define BSCOL 72