Replace assignment of a negative literal to an

------------------------------------------------

                 Key: THRIFT-1273
                 URL: https://issues.apache.org/jira/browse/THRIFT-1273
             Project: Thrift
          Issue Type: Improvement
          Components: C++ - Library
            Reporter: Dave Watson
            Priority: Minor
         Attachments: 
0005-Replace-assignment-of-a-negative-literal-to-an-unsig.patch.diff

>From 7f84cde1fd531bdae8c0e423e97e34c69a56197b Mon Sep 17 00:00:00 2001
From: [internal fb thing] Stein <st...@fb.com>
Date: Thu, 25 Feb 2010 23:07:15 +0000
Subject: [PATCH 05/33] Replace assignment of a negative literal to an
 unsigned int with assignment of an unsigned int

Summary: I have been using this file in [internal fb thing], and it causes 
compiler
         warnings. The compiler gets upset because negative literals are
         being assigned to unsigned types. This diff replaces the negative
         literals with unsigned bitwise equivalents.



Test Plan: I wrote a program that checks the bitwise equivalence of the
           array before and after. I also used the base64 encode and decode
           functions before and after, with equivalent results.



---
 lib/cpp/src/protocol/TBase64Utils.cpp |   32 ++++++++++++++++----------------
 1 files changed, 16 insertions(+), 16 deletions(-)



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to