aboutsummaryrefslogtreecommitdiffstats
path: root/reftable/stack.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-02-12 13:16:10 -0800
committerJunio C Hamano <gitster@pobox.com>2024-02-12 13:16:10 -0800
commitf424d7c33df373fb8eb4c9dc63ab6dc24de24aa5 (patch)
tree0a4a0ce4fd72be818d68f736c9eb98a42edbe123 /reftable/stack.h
parentMerge branch 'ps/reftable-multi-level-indices-fix' (diff)
parentreftable/record: improve semantics when initializing records (diff)
downloadgit-f424d7c33df373fb8eb4c9dc63ab6dc24de24aa5.tar.gz
git-f424d7c33df373fb8eb4c9dc63ab6dc24de24aa5.zip
Merge branch 'ps/reftable-styles'
Code clean-up in various reftable code paths. * ps/reftable-styles: reftable/record: improve semantics when initializing records reftable/merged: refactor initialization of iterators reftable/merged: refactor seeking of records reftable/stack: use `size_t` to track stack length reftable/stack: use `size_t` to track stack slices during compaction reftable/stack: index segments with `size_t` reftable/stack: fix parameter validation when compacting range reftable: introduce macros to allocate arrays reftable: introduce macros to grow arrays
Diffstat (limited to 'reftable/stack.h')
-rw-r--r--reftable/stack.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/reftable/stack.h b/reftable/stack.h
index c1e3efa899..d919455669 100644
--- a/reftable/stack.h
+++ b/reftable/stack.h
@@ -32,13 +32,13 @@ struct reftable_stack {
int read_lines(const char *filename, char ***lines);
struct segment {
- int start, end;
+ size_t start, end;
int log;
uint64_t bytes;
};
int fastlog2(uint64_t sz);
-struct segment *sizes_to_segments(int *seglen, uint64_t *sizes, int n);
-struct segment suggest_compaction_segment(uint64_t *sizes, int n);
+struct segment *sizes_to_segments(size_t *seglen, uint64_t *sizes, size_t n);
+struct segment suggest_compaction_segment(uint64_t *sizes, size_t n);
#endif