Commit 5512347
pack-objects: drop the two tree-walk casts in the preferred-base path
With init_tree_desc() widened in the prior commit, the
size_t-returning odb_read_object_peeled() call in
add_preferred_base() and odb_read_object() call in pbase_tree_get()
can both flow straight through to init_tree_desc() and into the
pbase_tree_cache. Widen pbase_tree_cache.tree_size and the two
local size variables to size_t, drop the size_st bridges, and drop
the two cast_size_t_to_ulong() shims.
This was the last pair of cast_size_t_to_ulong() call sites in
builtin/pack-objects.c, completing the >4 GiB-objects work in that
file that this branch and its predecessors have been pursuing.
Assisted-by: Opus 4.7
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent bd4dc27 commit 5512347
1 file changed
Lines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1919 | 1919 | | |
1920 | 1920 | | |
1921 | 1921 | | |
1922 | | - | |
| 1922 | + | |
1923 | 1923 | | |
1924 | 1924 | | |
1925 | 1925 | | |
| |||
1946 | 1946 | | |
1947 | 1947 | | |
1948 | 1948 | | |
1949 | | - | |
1950 | | - | |
| 1949 | + | |
1951 | 1950 | | |
1952 | 1951 | | |
1953 | 1952 | | |
| |||
1975 | 1974 | | |
1976 | 1975 | | |
1977 | 1976 | | |
1978 | | - | |
1979 | | - | |
| 1977 | + | |
1980 | 1978 | | |
1981 | 1979 | | |
1982 | 1980 | | |
| |||
2130 | 2128 | | |
2131 | 2129 | | |
2132 | 2130 | | |
2133 | | - | |
2134 | | - | |
| 2131 | + | |
2135 | 2132 | | |
2136 | 2133 | | |
2137 | 2134 | | |
2138 | 2135 | | |
2139 | 2136 | | |
2140 | 2137 | | |
2141 | | - | |
2142 | | - | |
| 2138 | + | |
2143 | 2139 | | |
2144 | 2140 | | |
2145 | 2141 | | |
| |||
0 commit comments