Skip to content

Commit

Permalink
Fix comparison of integers of different signs
Browse files Browse the repository at this point in the history
This fixes a warning in Xcode/clang "Comparison of integers of different signs: 'int' and 'UInt32' (aka 'unsigned int')"
  • Loading branch information
kainjow authored and jeking3 committed Aug 3, 2018
1 parent fdd735e commit 0a2d458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cocoa/src/transport/TNSStreamTransport.m
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ -(UInt32) readAvail:(UInt8 *)buf offset:(UInt32)off maxLength:(UInt32)len error:

-(BOOL) write:(const UInt8 *)data offset:(UInt32)offset length:(UInt32)length error:(NSError *__autoreleasing *)error
{
int got = 0;
UInt32 got = 0;
NSInteger total = 0;
while (got < length) {

Expand Down

0 comments on commit 0a2d458

Please sign in to comment.