You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jk...@apache.org on 2018/08/03 21:03:26 UTC

[thrift] branch master updated: Fix comparison of integers of different signs

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 <ka...@users.noreply.github.com>
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) {