Skip to content

Commit

Permalink
added NSInteger -> int casts to remove Xcode 4 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarmo committed May 11, 2013
1 parent e3243f7 commit 3d0de0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/CRDShared.m
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

inline NSString * CRDJoinHostNameAndPort(NSString *host, NSInteger port)
{
return (port && port != CRDDefaultPort) ? [NSString stringWithFormat:@"%@:%d", host, port] : [[host copy] autorelease];
return (port && port != CRDDefaultPort) ? [NSString stringWithFormat:@"%@:%i", host, (int)port] : [[host copy] autorelease];
}

void CRDSplitHostNameAndPort(NSString *address, NSString **host, NSInteger *port)
Expand Down Expand Up @@ -284,7 +284,7 @@ inline CRDInputEvent CRDMakeInputEvent(unsigned int time, unsigned short type, u
if (baseDir == nil)
baseDir = @"/tmp";

return [baseDir stringByAppendingPathComponent:[NSString stringWithFormat:@"CoRD-TemporaryFile-%u-%u", time(NULL), rand()]];
return [baseDir stringByAppendingPathComponent:[NSString stringWithFormat:@"CoRD-TemporaryFile-%lu-%u", time(NULL), rand()]];
}

BOOL CRDPathIsHidden(NSString *path)
Expand Down

0 comments on commit 3d0de0d

Please sign in to comment.