Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit af18d3d

Browse files
committed
Fix compile warning on Solaris, per buildfarm. (Why have we got
three slightly different copies of this file?)
1 parent cd54eb2 commit af18d3d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

contrib/hstore/crc32.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static const unsigned int crc32tab[256] = {
9090
unsigned int
9191
crc32_sz(char *buf, int size)
9292
{
93-
unsigned int crc = ~0;
93+
unsigned int crc = ~((unsigned int) 0);
9494
char *p;
9595
int len,
9696
nr;

contrib/ltree/crc32.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* Both POSIX and CRC32 checksums */
22

3-
/* $PostgreSQL: pgsql/contrib/ltree/crc32.c,v 1.7 2006/09/22 21:39:57 tgl Exp $ */
3+
/* $PostgreSQL: pgsql/contrib/ltree/crc32.c,v 1.8 2007/07/15 22:40:28 tgl Exp $ */
44

55
#include <sys/types.h>
66
#include <stdio.h>
@@ -99,7 +99,7 @@ static const unsigned int crc32tab[256] = {
9999
unsigned int
100100
ltree_crc32_sz(char *buf, int size)
101101
{
102-
unsigned int crc = ~0;
102+
unsigned int crc = ~((unsigned int) 0);
103103
char *p;
104104
int len,
105105
nr;

contrib/tsearch2/crc32.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* Both POSIX and CRC32 checksums */
22

3-
/* $PostgreSQL: pgsql/contrib/tsearch2/crc32.c,v 1.3 2006/03/11 04:38:30 momjian Exp $ */
3+
/* $PostgreSQL: pgsql/contrib/tsearch2/crc32.c,v 1.4 2007/07/15 22:40:28 tgl Exp $ */
44

55
#include <sys/types.h>
66
#include <stdio.h>
@@ -92,7 +92,7 @@ static const unsigned int crc32tab[256] = {
9292
unsigned int
9393
crc32_sz(char *buf, int size)
9494
{
95-
unsigned int crc = ~0;
95+
unsigned int crc = ~((unsigned int) 0);
9696
char *p;
9797
int len,
9898
nr;

0 commit comments

Comments
 (0)