[libcxx] r181569 - Fix incorrect type usage; nice catch by Sebastian

Marshall Clow mclow at qualcomm.com
Thu May 9 17:16:10 PDT 2013


Author: marshall
Date: Thu May  9 19:16:10 2013
New Revision: 181569

URL: http://llvm.org/viewvc/llvm-project?rev=181569&view=rev
Log:
Fix incorrect type usage; nice catch by Sebastian

Modified:
    libcxx/trunk/include/algorithm

Modified: libcxx/trunk/include/algorithm
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/algorithm?rev=181569&r1=181568&r2=181569&view=diff
==============================================================================
--- libcxx/trunk/include/algorithm (original)
+++ libcxx/trunk/include/algorithm Thu May  9 19:16:10 2013
@@ -1301,7 +1301,7 @@ __not_done:
     _D1 __l1 = _VSTD::distance(__first1, __last1);
 
     typedef typename iterator_traits<_ForwardIterator2>::difference_type _D2;
-    _D1 __l2 = _VSTD::distance(__first2, __last2);
+    _D2 __l2 = _VSTD::distance(__first2, __last2);
     if (__l1 != __l2)
         return false;
 





More information about the cfe-commits mailing list