Replaced all references to 0xffffffffffffffff/0xffffffffffffffffLL with ULLONG_MAX

Monotone-Parent: 04a0346af8290ab531d44883c56b4b27443baade
Monotone-Revision: d7e6ea19eaf3a8552c44ce60ed58b2efa54b9a27

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2011-10-07T18:30:15
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte
2011-10-07 18:30:15 +00:00
parent 8324533cdb
commit 4e6a070fdc
6 changed files with 8 additions and 8 deletions

View File

@@ -72,7 +72,7 @@ typedef void (*getMessageData_inMemCtx_) (MAPIStoreMessage *, SEL,
- (uint64_t) objectVersion
{
return ([sogoObject isKindOfClass: SOGoDraftObjectK]
? 0xffffffffffffffffLL
? ULLONG_MAX
: [super objectVersion]);
}

View File

@@ -93,7 +93,7 @@ Class NSNumberK;
return (version
? exchange_globcnt ([version unsignedLongLongValue])
: 0xffffffffffffffff);
: ULLONG_MAX);
}
- (int) getProperty: (void **) data

View File

@@ -97,7 +97,7 @@
- (uint64_t) objectVersion
{
uint64_t version = 0xffffffffffffffffLL;
uint64_t version = ULLONG_MAX;
NSNumber *changeNumber;
if (!isNew)

View File

@@ -354,7 +354,7 @@ _compareBodyKeysByPriority (id entry1, id entry2, void *data)
- (uint64_t) objectVersion
{
uint64_t version = 0xffffffffffffffffLL;
uint64_t version = ULLONG_MAX;
NSNumber *uid, *changeNumber;
uid = [(MAPIStoreMailFolder *)

View File

@@ -354,7 +354,7 @@ static Class NSExceptionK, MAPIStoreFolderK;
{
[self subclassResponsibility: _cmd];
return 0xffffffffffffffffLL;
return ULLONG_MAX;
}
- (int) getPrChangeKey: (void **) data
@@ -364,7 +364,7 @@ static Class NSExceptionK, MAPIStoreFolderK;
uint64_t obVersion;
obVersion = [self objectVersion];
if (obVersion == 0xffffffffffffffffLL)
if (obVersion == ULLONG_MAX)
rc = MAPISTORE_ERR_NOT_FOUND;
else
rc = [self getReplicaKey: data fromGlobCnt: obVersion
@@ -380,7 +380,7 @@ static Class NSExceptionK, MAPIStoreFolderK;
uint64_t obVersion;
obVersion = [self objectVersion];
if (obVersion == 0xffffffffffffffffLL)
if (obVersion == ULLONG_MAX)
rc = MAPISTORE_ERR_NOT_FOUND;
else
{

View File

@@ -76,7 +76,7 @@
uint64_t value = 0;
if ([userId isEqualToString: @"anonymous"])
value = 0xffffffffffffffff;
value = ULLONG_MAX;
*data = MAPILongLongValue (memCtx, value);