Skip to content

Commit

Permalink
Reverted change in case of float/bool for now, because I couldn't det…
Browse files Browse the repository at this point in the history
…ermine the context of the object `o` and therefore don't know if I can cast it or call floatValue on it.
  • Loading branch information
MosheBerman committed Feb 3, 2016
1 parent 1cbb4dc commit d7eb19e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iOS/OCRuntime/RTBObjectsTVC.m
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ - (void)performMethod:(RTBMethod *)m withParameters:(NSMutableArray *)parameters
if([returnTypeDecoded isEqualToString:@"NSInteger"] || [returnTypeDecoded isEqualToString:@"NSUInteger"] || [returnTypeDecoded hasSuffix:@"int"]) {
o = [NSString stringWithFormat:@"%d", (int)o];
} else if([returnTypeDecoded isEqualToString:@"double"] || [returnTypeDecoded isEqualToString:@"float"]) {
o = [NSString stringWithFormat:@"%@", o];
o = [NSString stringWithFormat:@"%f", [o floatValue]];
} else if([returnTypeDecoded isEqualToString:@"BOOL"]) {
o = ([o boolValue]) ? @"YES" : @"NO";
} else if ([returnTypeDecoded isEqualToString:@"void"]) {
Expand Down

0 comments on commit d7eb19e

Please sign in to comment.