We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2265d3 commit fb5961fCopy full SHA for fb5961f
contrib/pageinspect/heapfuncs.c
@@ -455,8 +455,8 @@ tuple_data_split(PG_FUNCTION_ARGS)
455
*/
456
if (t_infomask & HEAP_HASNULL)
457
{
458
- int bits_str_len;
459
- int bits_len;
+ size_t bits_str_len;
+ size_t bits_len;
460
461
bits_len = BITMAPLEN(t_infomask2 & HEAP_NATTS_MASK) * BITS_PER_BYTE;
462
if (!t_bits_str)
@@ -468,7 +468,7 @@ tuple_data_split(PG_FUNCTION_ARGS)
468
if (bits_len != bits_str_len)
469
ereport(ERROR,
470
(errcode(ERRCODE_DATA_CORRUPTED),
471
- errmsg("unexpected length of t_bits string: %u, expected %u",
+ errmsg("unexpected length of t_bits string: %zu, expected %zu",
472
bits_str_len, bits_len)));
473
474
/* do the conversion */
0 commit comments