This is an automated email from the ASF dual-hosted git repository.
jking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push:
new 0a2d458 Fix comparison of integers of different signs
0a2d458 is described below
commit 0a2d4587c8cc0a54e4fa8fee9247d088d05b0d65
Author: Kevin Wojniak <[email protected]>
AuthorDate: Wed Aug 1 17:24:17 2018 -0700
Fix comparison of integers of different signs
This fixes a warning in Xcode/clang "Comparison of integers of different
signs: 'int' and 'UInt32' (aka 'unsigned int')"
---
lib/cocoa/src/transport/TNSStreamTransport.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/cocoa/src/transport/TNSStreamTransport.m
b/lib/cocoa/src/transport/TNSStreamTransport.m
index c425043..18c41d3 100644
--- a/lib/cocoa/src/transport/TNSStreamTransport.m
+++ b/lib/cocoa/src/transport/TNSStreamTransport.m
@@ -94,7 +94,7 @@
-(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) {