summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2007-07-15 22:40:28 +0000
committerTom Lane2007-07-15 22:40:28 +0000
commite6b97b06253a561f47ea7e3bbe10071aaedfbe7a (patch)
tree4ed122b16f1b52eb0d7bf56241b52875cc837951
parentf59727a5035531410b0e319d11b562055f93f23d (diff)
Fix compile warning on Solaris, per buildfarm. (Why have we got
three slightly different copies of this file?)
-rw-r--r--contrib/hstore/crc32.c2
-rw-r--r--contrib/ltree/crc32.c2
-rw-r--r--contrib/tsearch2/crc32.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/contrib/hstore/crc32.c b/contrib/hstore/crc32.c
index dc93db727c..5f4f7a3178 100644
--- a/contrib/hstore/crc32.c
+++ b/contrib/hstore/crc32.c
@@ -90,7 +90,7 @@ static const unsigned int crc32tab[256] = {
unsigned int
crc32_sz(char *buf, int size)
{
- unsigned int crc = ~0;
+ unsigned int crc = ~((unsigned int) 0);
char *p;
int len,
nr;
diff --git a/contrib/ltree/crc32.c b/contrib/ltree/crc32.c
index 7362306915..6736d15540 100644
--- a/contrib/ltree/crc32.c
+++ b/contrib/ltree/crc32.c
@@ -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;
diff --git a/contrib/tsearch2/crc32.c b/contrib/tsearch2/crc32.c
index 27ffcfee37..b77c2d4827 100644
--- a/contrib/tsearch2/crc32.c
+++ b/contrib/tsearch2/crc32.c
@@ -92,7 +92,7 @@ static const unsigned int crc32tab[256] = {
unsigned int
crc32_sz(char *buf, int size)
{
- unsigned int crc = ~0;
+ unsigned int crc = ~((unsigned int) 0);
char *p;
int len,
nr;