[PATCH v2 7/7] fixup! reftable: (de)serialization for the polymorphic record type
Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
---
reftable/record_test.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/reftable/record_test.c b/reftable/record_test.c
index bf5d072b20..519c0bbf18 100644
--- a/reftable/record_test.c
+++ b/reftable/record_test.c
@@ -207,9 +207,11 @@ static void test_reftable_log_record_roundtrip(void)
.value_type = REFTABLE_LOG_DELETION,
}
};
+ int i;
+
set_test_hash(in[0].update.new_hash, 1);
set_test_hash(in[0].update.old_hash, 2);
- for (int i = 0; i < ARRAY_SIZE(in); i++) {
+ for (i = 0; i < ARRAY_SIZE(in); i++) {
struct reftable_record rec = { NULL };
struct strbuf key = STRBUF_INIT;
uint8_t buffer[1024] = { 0 };
--
2.33.0.rc2.476.g1b09a32a73