Fix cpluspluscheck in checksum code
authorPeter Eisentraut <peter_e@gmx.net>
Sun, 30 Jun 2013 14:25:43 +0000 (10:25 -0400)
committerPeter 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

index ce1b124fa536d5a08c8efe3ab8e61f95da232da7..27a424d410aa6109dcd718d5f050d25a2608c2e3 100644 (file)
@@ -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 */