diff options
Diffstat (limited to 'src/key-value-store/database/kissdb.c')
-rw-r--r-- | src/key-value-store/database/kissdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/key-value-store/database/kissdb.c b/src/key-value-store/database/kissdb.c index 6a4d119..7c0695d 100644 --- a/src/key-value-store/database/kissdb.c +++ b/src/key-value-store/database/kissdb.c @@ -1532,7 +1532,7 @@ int verifyHashtableCS(KISSDB* db) ptr += offset; //get number of hashtables in file (search for hashtable delimiters) and copy the hashtables to memory - while (offset <= (statBuf.st_size - db->htSizeBytes)) //begin with offset for first hashtable + while (offset <= ((int64_t)statBuf.st_size - (int64_t)db->htSizeBytes)) //begin with offset for first hashtable { hashtable = (Hashtable_s*) ptr; //if at least one of two hashtable delimiters are found |