mirror of
https://github.com/borgbackup/borg.git
synced 2026-03-26 20:34:45 -04:00
hashindex_size: return int64_t, fixes #9423
This commit is contained in:
parent
fe721d6a3c
commit
c2191237e4
2 changed files with 4 additions and 4 deletions
|
|
@ -716,10 +716,10 @@ hashindex_len(HashIndex *index)
|
|||
return index->num_entries;
|
||||
}
|
||||
|
||||
static int
|
||||
static int64_t
|
||||
hashindex_size(HashIndex *index)
|
||||
{
|
||||
return sizeof(HashHeader) + index->num_buckets * index->bucket_size;
|
||||
return sizeof(HashHeader) + (int64_t)index->num_buckets * index->bucket_size;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import locale
|
|||
import os
|
||||
|
||||
cimport cython
|
||||
from libc.stdint cimport uint32_t, UINT32_MAX, uint64_t
|
||||
from libc.stdint cimport int64_t, uint32_t, UINT32_MAX, uint64_t
|
||||
from libc.errno cimport errno
|
||||
from libc.string cimport memcpy
|
||||
from cpython.exc cimport PyErr_SetFromErrnoWithFilename
|
||||
|
|
@ -28,7 +28,7 @@ cdef extern from "_hashindex.c":
|
|||
HashIndex *hashindex_init(int capacity, int key_size, int value_size)
|
||||
void hashindex_free(HashIndex *index)
|
||||
int hashindex_len(HashIndex *index)
|
||||
int hashindex_size(HashIndex *index)
|
||||
int64_t hashindex_size(HashIndex *index)
|
||||
void hashindex_write(HashIndex *index, object file_py) except *
|
||||
void *hashindex_get(HashIndex *index, void *key)
|
||||
void *hashindex_next_key(HashIndex *index, void *key)
|
||||
|
|
|
|||
Loading…
Reference in a new issue