projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14a8503
)
Fix cpluspluscheck in checksum code
author
Peter Eisentraut
<peter_e@gmx.net>
Sun, 30 Jun 2013 14:25:43 +0000
(10:25 -0400)
committer
Peter Eisentraut
<peter_e@gmx.net>
Sun, 30 Jun 2013 14:25:43 +0000
(10:25 -0400)
C++ is more picky about comparing signed and unsigned integers.
src/include/storage/checksum_impl.h
patch
|
blob
|
blame
|
history
diff --git
a/src/include/storage/checksum_impl.h
b/src/include/storage/checksum_impl.h
index ce1b124fa536d5a08c8efe3ab8e61f95da232da7..27a424d410aa6109dcd718d5f050d25a2608c2e3 100644
(file)
--- 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 */