X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/000ba0def6e1f9f2bb89aad53f7c72d9e0c0e41f..0680be67c7d22d9b58fd8c309bb24f537cf717b5:/crc-mktab.c?ds=inline 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