t-strvec: fix type mismatch in check_strvec

Cast i from size_t to uintmax_t to match the format string.

Reported-by: Jeff King <peff@peff.net>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
René Scharfe 2024-07-16 18:14:35 +02:00 committed by Junio C Hamano
parent 141e13ee1a
commit 78687168bc
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,8 @@
check_uint((vec)->nr, <=, (vec)->alloc)) { \
for (size_t i = 0; i < ARRAY_SIZE(expect); i++) { \
if (!check_str((vec)->v[i], expect[i])) { \
test_msg(" i: %"PRIuMAX, i); \
test_msg(" i: %"PRIuMAX, \
(uintmax_t)i); \
break; \
} \
} \