summaryrefslogtreecommitdiff
path: root/contrib/ltree/crc32.c
diff options
context:
space:
mode:
authorTom Lane2007-07-15 22:40:28 +0000
committerTom Lane2007-07-15 22:40:28 +0000
commitaf18d3d05c59d72c3a32f988516a5d5d52d4c28d (patch)
treee3d5654b35921376eccc75affc9aa4ce939d2704 /contrib/ltree/crc32.c
parentcd54eb2b5b990f206644e526f9fe3e1f17d303ba (diff)
Fix compile warning on Solaris, per buildfarm. (Why have we got
three slightly different copies of this file?)
Diffstat (limited to 'contrib/ltree/crc32.c')
-rw-r--r--contrib/ltree/crc32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/ltree/crc32.c b/contrib/ltree/crc32.c
index 8f37f47fe22..f0078d6e426 100644
--- a/contrib/ltree/crc32.c
+++ b/contrib/ltree/crc32.c
@@ -1,6 +1,6 @@
/* 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>
@@ -99,7 +99,7 @@ static const unsigned int crc32tab[256] = {
unsigned int
ltree_crc32_sz(char *buf, int size)
{
- unsigned int crc = ~0;
+ unsigned int crc = ~((unsigned int) 0);
char *p;
int len,
nr;