Both `reftable_writer_add_refs()` and `reftable_writer_add_logs()` accept an array of records that should be added to the new table. Callers of this function are expected to also pass the number of such records to the function to tell it how many such records it is supposed to write. But while all callers pass in a `size_t`, which is a sensible choice, the function in fact accepts an `int` as argument, which is less so. Fix this. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com> |
||
|---|---|---|
| .. | ||
| LICENSE | ||
| basics.c | ||
| basics.h | ||
| block.c | ||
| block.h | ||
| blocksource.c | ||
| blocksource.h | ||
| constants.h | ||
| error.c | ||
| iter.c | ||
| iter.h | ||
| merged.c | ||
| merged.h | ||
| pq.c | ||
| pq.h | ||
| record.c | ||
| record.h | ||
| reftable-basics.h | ||
| reftable-block.h | ||
| reftable-blocksource.h | ||
| reftable-constants.h | ||
| reftable-error.h | ||
| reftable-iterator.h | ||
| reftable-merged.h | ||
| reftable-record.h | ||
| reftable-stack.h | ||
| reftable-table.h | ||
| reftable-writer.h | ||
| stack.c | ||
| stack.h | ||
| system.c | ||
| system.h | ||
| table.c | ||
| table.h | ||
| tree.c | ||
| tree.h | ||
| writer.c | ||
| writer.h | ||