summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2021-11-24 07:15:17 +0000
committerPeter Eisentraut2021-11-24 07:15:17 +0000
commitfb5961fd13b1262df280e400645bdf4ed192f058 (patch)
tree52ed7d9239a97b82d898ea3690ce692e75399a94
parentb2265d305d81b0c1a2cec6c5b66a190a9e69e853 (diff)
Fix incorrect format placeholders
Also choose better types for the underlying variables to make this more consistent.
-rw-r--r--contrib/pageinspect/heapfuncs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/pageinspect/heapfuncs.c b/contrib/pageinspect/heapfuncs.c
index f6760eb31e..a05611c0b3 100644
--- a/contrib/pageinspect/heapfuncs.c
+++ b/contrib/pageinspect/heapfuncs.c
@@ -455,8 +455,8 @@ tuple_data_split(PG_FUNCTION_ARGS)
*/
if (t_infomask & HEAP_HASNULL)
{
- int bits_str_len;
- int bits_len;
+ size_t bits_str_len;
+ size_t bits_len;
bits_len = BITMAPLEN(t_infomask2 & HEAP_NATTS_MASK) * BITS_PER_BYTE;
if (!t_bits_str)
@@ -468,7 +468,7 @@ tuple_data_split(PG_FUNCTION_ARGS)
if (bits_len != bits_str_len)
ereport(ERROR,
(errcode(ERRCODE_DATA_CORRUPTED),
- errmsg("unexpected length of t_bits string: %u, expected %u",
+ errmsg("unexpected length of t_bits string: %zu, expected %zu",
bits_str_len, bits_len)));
/* do the conversion */