Change the 'result_type' from unsigned to 'uint_fast32_t'. This eliminates truncation...
authorMarshall Clow <mclow@qualcomm.com>
Thu, 7 Feb 2013 22:12:02 +0000 (22:12 +0000)
committerMarshall Clow <mclow@qualcomm.com>
Thu, 7 Feb 2013 22:12:02 +0000 (22:12 +0000)
llvm-svn: 174669

libcxx/include/algorithm

index e24f979..4adcc69 100644 (file)
@@ -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;