Skip to content

Commit

Permalink
Merge pull request #87 from mbaltaks/master
Browse files Browse the repository at this point in the history
Fix some minor warnings
  • Loading branch information
jasperblues committed Oct 22, 2013
2 parents 37ca917 + 965ebe1 commit e1dc19c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ -(TyphoonCollectionType)collectionType {

[NSException raise:NSInvalidArgumentException format:@"Required collection type '%@' is neither an NSSet nor NSArray.",
NSStringFromClass(clazz)];
return nil;
return 0;
}

@end
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ - (TyphoonCollectionType)resolveCollectionTypeWith:(id<TyphoonIntrospectiveNSObj

[NSException raise:NSInvalidArgumentException format:@"Property named '%@' on '%@' is neither an NSSet nor NSArray.", _name,
NSStringFromClass(describedClass)];
return nil;
return 0;
}

/* ====================================================================================================================================== */
Expand Down Expand Up @@ -100,4 +100,4 @@ - (NSString*)description
}


@end
@end
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ - (unsigned long)convertToUnsignedLong:(NSString*)stringValue
NSScanner* scanner = [[NSScanner alloc] initWithString:stringValue];
long long converted = 0;
[scanner scanLongLong:&converted];
return [[NSNumber numberWithLong:converted] unsignedLongValue];
return [[NSNumber numberWithLongLong:converted] unsignedLongValue];
}

- (unsigned long long)convertToUnsignedLongLong:(NSString*)stringValue
Expand Down Expand Up @@ -204,4 +204,4 @@ - (void)setPrimitiveArgumentFor:(NSInvocation*)invocation index:(NSUInteger)inde
}


@end
@end

0 comments on commit e1dc19c

Please sign in to comment.