summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDisch, Simon <Simon.Disch@xse.de>2015-04-01 12:21:21 +0200
committerDisch, Simon <Simon.Disch@xse.de>2015-04-01 12:21:21 +0200
commit1b23e610576f9212061008df2a6cb065982a9c97 (patch)
tree4b9c139df4322e675e722a0918bb2c04188b12cd
parentd64b62a16e672c93a8c2b73342c076947980452d (diff)
downloadpersistence-common-object-1b23e610576f9212061008df2a6cb065982a9c97.tar.gz
fixed GENIVI Bug 345
-rw-r--r--src/key-value-store/database/kissdb.c2
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