ensure that object versions are properly "masked" to 48-bit integers

This commit is contained in:
Wolfgang Sourdeau
2012-10-10 08:43:21 -04:00
parent ad2b5fe413
commit 060c036936
2 changed files with 4 additions and 2 deletions

View File

@@ -91,7 +91,8 @@
[(SOGoMAPIDBMessage *) sogoObject reloadIfNeeded];
versionNbr = [properties objectForKey: @"version"];
if (versionNbr)
objectVersion = [versionNbr unsignedLongLongValue] >> 16;
objectVersion = (([versionNbr unsignedLongLongValue] >> 16)
& 0x0000ffffffffffffLL);
else
objectVersion = ULLONG_MAX;