Skip to content

Commit

Permalink
casts to suppress warnings under 64bit
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbrown committed Feb 18, 2014
1 parent e699815 commit ef67ea1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions TestSupport/GTMDebugSelectorValidation.h
Expand Up @@ -61,7 +61,7 @@ static void GTMAssertSelectorNilOrImplementedWithReturnTypeAndArguments(id obj,
@"\"%@\" selector \"%@\" argument %d should be type %s",
NSStringFromClass([obj class]),
NSStringFromSelector(sel),
(argCount - 2),
(int)(argCount - 2),
expectedArgType);
}
argCount++;
Expand All @@ -72,7 +72,7 @@ static void GTMAssertSelectorNilOrImplementedWithReturnTypeAndArguments(id obj,
@"\"%@\" selector \"%@\" should have %d arguments",
NSStringFromClass([obj class]),
NSStringFromSelector(sel),
(argCount - 2));
(int)(argCount - 2));

// if asked, validate the return type
if (retType && (strcmp("gtm_skip_return_test", retType) != 0)) {
Expand Down
4 changes: 2 additions & 2 deletions TestSupport/GTMRegex.m
Expand Up @@ -711,9 +711,9 @@ - (NSString *)description {
const char* string
= (((const char*)[utf8StrBuf_ bytes]) + regMatches_[x].rm_so);
if (x == 0) {
[result appendFormat:@" \"%.*s\"", length , string];
[result appendFormat:@" \"%.*s\"", (int) length , string];
} else {
[result appendFormat:@", \"%.*s\"", length , string];
[result appendFormat:@", \"%.*s\"", (int) length , string];
}
}
[result appendString:@" ) }"];
Expand Down

0 comments on commit ef67ea1

Please sign in to comment.