Skip to content

Commit 129759d

Browse files
committed
Fix cpluspluscheck in checksum code
C++ is more picky about comparing signed and unsigned integers.
1 parent 14a8503 commit 129759d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/storage/checksum_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ pg_checksum_block(char *data, uint32 size)
141141
uint32 sums[N_SUMS];
142142
uint32 (*dataArr)[N_SUMS] = (uint32 (*)[N_SUMS]) data;
143143
uint32 result = 0;
144-
int i,
144+
uint32 i,
145145
j;
146146

147147
/* ensure that the size is compatible with the algorithm */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy