Monotone-Parent: e356443889853160f98a31849aede88bc4bac6bd

Monotone-Revision: cdceff0f0c850bdd8d0af588d8e4b75eb75634a5

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-12-30T14:50:48
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-12-30 14:50:48 +00:00
parent a18e6f3dbf
commit 999c469a3e
3 changed files with 7 additions and 4 deletions
+3
View File
@@ -1,5 +1,8 @@
2010-12-30 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/NSValue+MAPIStore.m (-asDoubleInMemCtx): really
returns a double rather than an uint64_t.
* OpenChange/MAPIStoreTypes.m (MAPIDoubleValue): new wrapper
methods for generating data of "double" type.
(NSObjectFromMAPISPropValue, NSObjectFromSPropValue): now handle
+1 -1
View File
@@ -30,7 +30,7 @@
- (uint8_t *) asBooleanInMemCtx: (void *) memCtx;
- (uint16_t *) asShortInMemCtx: (void *) memCtx;
- (uint32_t *) asLongInMemCtx: (void *) memCtx;
- (uint64_t *) asDoubleInMemCtx: (void *) memCtx;
- (double *) asDoubleInMemCtx: (void *) memCtx;
@end
+3 -3
View File
@@ -56,11 +56,11 @@
return value;
}
- (uint64_t *) asDoubleInMemCtx: (void *) memCtx
- (double *) asDoubleInMemCtx: (void *) memCtx
{
uint64_t *value;
double *value;
value = talloc (memCtx, uint64_t);
value = talloc (memCtx, double);
*value = [self doubleValue];
return value;