summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2013-06-30 14:25:43 +0000
committerPeter Eisentraut2013-06-30 23:34:14 +0000
commit95ffbce9a197a434bc1d5bd42268f05d3bfa8168 (patch)
treedcbf61c93fe12db9e371ed246b0471b743c9c449
parent452d0c21825dd52c10af4538d850991bf6a00e38 (diff)
Fix cpluspluscheck in checksum code
C++ is more picky about comparing signed and unsigned integers.
-rw-r--r--src/include/storage/checksum_impl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/storage/checksum_impl.h b/src/include/storage/checksum_impl.h
index ce1b124fa53..27a424d410a 100644
--- a/src/include/storage/checksum_impl.h
+++ b/src/include/storage/checksum_impl.h
@@ -141,7 +141,7 @@ pg_checksum_block(char *data, uint32 size)
uint32 sums[N_SUMS];
uint32 (*dataArr)[N_SUMS] = (uint32 (*)[N_SUMS]) data;
uint32 result = 0;
- int i,
+ uint32 i,
j;
/* ensure that the size is compatible with the algorithm */