three slightly different copies of this file?)
unsigned int
crc32_sz(char *buf, int size)
{
- unsigned int crc = ~0;
+ unsigned int crc = ~((unsigned int) 0);
char *p;
int len,
nr;
/* Both POSIX and CRC32 checksums */
-/* $PostgreSQL: pgsql/contrib/ltree/crc32.c,v 1.7 2006/09/22 21:39:57 tgl Exp $ */
+/* $PostgreSQL: pgsql/contrib/ltree/crc32.c,v 1.8 2007/07/15 22:40:28 tgl Exp $ */
#include <sys/types.h>
#include <stdio.h>
unsigned int
ltree_crc32_sz(char *buf, int size)
{
- unsigned int crc = ~0;
+ unsigned int crc = ~((unsigned int) 0);
char *p;
int len,
nr;
/* Both POSIX and CRC32 checksums */
-/* $PostgreSQL: pgsql/contrib/tsearch2/crc32.c,v 1.3 2006/03/11 04:38:30 momjian Exp $ */
+/* $PostgreSQL: pgsql/contrib/tsearch2/crc32.c,v 1.4 2007/07/15 22:40:28 tgl Exp $ */
#include <sys/types.h>
#include <stdio.h>
unsigned int
crc32_sz(char *buf, int size)
{
- unsigned int crc = ~0;
+ unsigned int crc = ~((unsigned int) 0);
char *p;
int len,
nr;