Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaf18d3d

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

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

‎contrib/hstore/crc32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static const unsigned int crc32tab[256] = {
9090
unsignedint
9191
crc32_sz(char*buf,intsize)
9292
{
93-
unsignedintcrc= ~0;
93+
unsignedintcrc= ~((unsignedint)0);
9494
char*p;
9595
intlen,
9696
nr;

‎contrib/ltree/crc32.c

Lines changed: 2 additions & 2 deletions
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
unsignedint
100100
ltree_crc32_sz(char*buf,intsize)
101101
{
102-
unsignedintcrc= ~0;
102+
unsignedintcrc= ~((unsignedint)0);
103103
char*p;
104104
intlen,
105105
nr;

‎contrib/tsearch2/crc32.c

Lines changed: 2 additions & 2 deletions
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
unsignedint
9393
crc32_sz(char*buf,intsize)
9494
{
95-
unsignedintcrc= ~0;
95+
unsignedintcrc= ~((unsignedint)0);
9696
char*p;
9797
intlen,
9898
nr;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp