mirror of
https://github.com/git-for-windows/git.git
synced 2026-06-28 18:55:47 -05:00
diff-delta: widen sizeof_delta_index() return to size_t
Last piece of the delta API to still expose unsigned long. The function literally returns struct delta_index.memsize, which became size_t in the first commit of this series. The sole caller (free_unpacked() in builtin/pack-objects.c) already accepts size_t via its freed_mem local, so the widening only removes the implicit size_t -> unsigned long narrowing inside the function body. Assisted-by: Opus 4.7 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
committed by
Git for Windows Build Agent
parent
6ad817c465
commit
cab24df8bc
2
delta.h
2
delta.h
@@ -28,7 +28,7 @@ void free_delta_index(struct delta_index *index);
|
||||
*
|
||||
* Given pointer must be what create_delta_index() returned, or NULL.
|
||||
*/
|
||||
unsigned long sizeof_delta_index(struct delta_index *index);
|
||||
size_t sizeof_delta_index(struct delta_index *index);
|
||||
|
||||
/*
|
||||
* create_delta: create a delta from given index for the given buffer
|
||||
|
||||
@@ -302,7 +302,7 @@ void free_delta_index(struct delta_index *index)
|
||||
free(index);
|
||||
}
|
||||
|
||||
unsigned long sizeof_delta_index(struct delta_index *index)
|
||||
size_t sizeof_delta_index(struct delta_index *index)
|
||||
{
|
||||
if (index)
|
||||
return index->memsize;
|
||||
|
||||
Reference in New Issue
Block a user