adium/adium

Add a cast here to silence a warning.

2013-06-03, Frank Dowsett
94eac2b970cf
Parents a7ca86f2f35c
Children b3f0ce37cbea
Add a cast here to silence a warning.
--- a/UnitTests/TestStringAdditions.m Mon Jun 03 17:17:12 2013 -0400
+++ b/UnitTests/TestStringAdditions.m Mon Jun 03 20:23:21 2013 -0400
@@ -467,7 +467,7 @@
}
- (void) testCaseInsensitivelyEqualToThingsThatAreNotStrings {
NSString *str = @"Adium rocks!";
- STAssertThrows([str isCaseInsensitivelyEqualToString:[[[NSObject alloc] init] autorelease]], @"can't compare string to plain object; this should have thrown");
+ STAssertThrows([str isCaseInsensitivelyEqualToString:(NSString *)[[[NSObject alloc] init] autorelease]], @"can't compare string to plain object; this should have thrown");
STAssertThrows([str isCaseInsensitivelyEqualToString:(NSString *)[NSNumber numberWithInteger:42]], @"can't compare string to number; this should have thrown");
STAssertThrows([str isCaseInsensitivelyEqualToString:(NSString *)[NSValue valueWithRect:NSMakeRect(0.0f, 0.0f, 128.0f, 128.0f)]], @"can't compare string to rect value; this should have thrown");
STAssertThrows([str isCaseInsensitivelyEqualToString:(NSString *)[NSImage imageNamed:@"NSDefaultApplicationIcon"]], @"can't compare string to image; this should have thrown");