Skip to content

Commit dbb2c16

Browse files
Merge pull request #510 from microsoft/eduardo-camacho/feature/objc-int64
Issue #500: Fix handing of int64 values at Obj-C wrapper when sending event
2 parents f91bf70 + c8c4e26 commit dbb2c16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wrappers/obj-c/ODWLogger.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ -(void) unwrapEventProperties: (ODWEventProperties*) wrappedProperties onEvent:(
6464
if(strcmp([num objCType], @encode(BOOL))==0 ) {
6565
event.SetProperty(strPropertyName, [num boolValue] ? true : false, piiKind);
6666
}
67-
else if( strcmp([num objCType], @encode(int))==0 ){
68-
event.SetProperty(strPropertyName, [num intValue], piiKind);
69-
}else{
67+
else if( (strcmp([num objCType], @encode(float))==0) || (strcmp([num objCType], @encode(double))==0) || (strcmp([num objCType], @encode(long double))==0) ){
7068
event.SetProperty(strPropertyName, [num floatValue], piiKind);
69+
}else{
70+
event.SetProperty(strPropertyName, [num longLongValue], piiKind);
7171
}
7272
}
7373
else if([value isKindOfClass: [NSDate class]])

0 commit comments

Comments
 (0)