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

Chandler Carruth chandlerc at google.com
Thu May 9 17:31:38 PDT 2013


On Fri, May 10, 2013 at 2:16 AM, Marshall Clow <mclow at qualcomm.com> wrote:

> 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
>

Test case please?


>
> 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;
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130510/d8f836e4/attachment.html>


More information about the cfe-commits mailing list