diff --git a/Source/Component/Initializer/Collection/TyphoonParameterInjectedAsCollection.m b/Source/Component/Initializer/Collection/TyphoonParameterInjectedAsCollection.m index c998377ad..472fe0d16 100644 --- a/Source/Component/Initializer/Collection/TyphoonParameterInjectedAsCollection.m +++ b/Source/Component/Initializer/Collection/TyphoonParameterInjectedAsCollection.m @@ -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 diff --git a/Source/Component/Properties/Collection/TyphoonPropertyInjectedAsCollection.m b/Source/Component/Properties/Collection/TyphoonPropertyInjectedAsCollection.m index b2686d5fb..64a3c7048 100644 --- a/Source/Component/Properties/Collection/TyphoonPropertyInjectedAsCollection.m +++ b/Source/Component/Properties/Collection/TyphoonPropertyInjectedAsCollection.m @@ -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; } /* ====================================================================================================================================== */ @@ -100,4 +100,4 @@ - (NSString*)description } -@end \ No newline at end of file +@end diff --git a/Source/TypeConversion/Converters/TyphoonPrimitiveTypeConverter.m b/Source/TypeConversion/Converters/TyphoonPrimitiveTypeConverter.m index 25ce22f6b..758a31874 100644 --- a/Source/TypeConversion/Converters/TyphoonPrimitiveTypeConverter.m +++ b/Source/TypeConversion/Converters/TyphoonPrimitiveTypeConverter.m @@ -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 @@ -204,4 +204,4 @@ - (void)setPrimitiveArgumentFor:(NSInvocation*)invocation index:(NSUInteger)inde } -@end \ No newline at end of file +@end