1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Fix compile warning on Solaris, per buildfarm. (Why have we got

three slightly different copies of this file?)
This commit is contained in:
Tom Lane
2007-07-15 22:40:28 +00:00
parent cd54eb2b5b
commit af18d3d05c
3 changed files with 5 additions and 5 deletions

View File

@ -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;