mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
odb: fix mempack cast
This commit is contained in:
@@ -213,15 +213,9 @@ int git_mempack_new(git_odb_backend **out)
|
||||
int git_mempack_object_count(size_t *out, git_odb_backend *_backend)
|
||||
{
|
||||
struct memory_packer_db *db = (struct memory_packer_db *)_backend;
|
||||
uint32_t count;
|
||||
|
||||
GIT_ASSERT_ARG(_backend);
|
||||
|
||||
count = git_odb_mempack_oidmap_size(&db->objects);
|
||||
|
||||
if (count < 0)
|
||||
return count;
|
||||
|
||||
*out = (size_t)count;
|
||||
*out = (size_t)git_odb_mempack_oidmap_size(&db->objects);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user