[libcxx] r174669 - Change the 'result_type' from unsigned to 'uint_fast32_t'. This eliminates truncation warnings on Linux

Marshall Clow mclow at qualcomm.com
Thu Feb 7 14:12:03 PST 2013


Author: marshall
Date: Thu Feb  7 16:12:02 2013
New Revision: 174669

URL: http://llvm.org/viewvc/llvm-project?rev=174669&view=rev
Log:
Change the 'result_type' from unsigned to 'uint_fast32_t'. This eliminates truncation warnings on Linux

Modified:
    libcxx/trunk/include/algorithm

Modified: libcxx/trunk/include/algorithm
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/algorithm?rev=174669&r1=174668&r2=174669&view=diff
==============================================================================
--- libcxx/trunk/include/algorithm (original)
+++ libcxx/trunk/include/algorithm Thu Feb  7 16:12:02 2013
@@ -2764,7 +2764,7 @@ class __rs_default
 
     __rs_default();
 public:
-    typedef unsigned result_type;
+    typedef uint_fast32_t result_type;
 
     static const result_type _Min = 0;
     static const result_type _Max = 0xFFFFFFFF;





More information about the cfe-commits mailing list