From d1e53ce588cf2a623836c8d9ce184ebbc169d957 Mon Sep 17 00:00:00 2001 From: Bryce Adelstein Lelbach aka wash Date: Tue, 29 Jan 2019 13:34:05 -0800 Subject: [PATCH] Revert "Change the position counting type for constant_iterator to intmax_t." temporarily, because it was mistakenly not integrated into the 10.1 branch. This reverts commit a30c62b85723bca9c57cb743331993eeeacdcccc. --- testing/constant_iterator.cu | 13 +------------ thrust/iterator/detail/constant_iterator_base.h | 2 +- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/testing/constant_iterator.cu b/testing/constant_iterator.cu index cbf771c9a..6d49169f6 100644 --- a/testing/constant_iterator.cu +++ b/testing/constant_iterator.cu @@ -46,17 +46,6 @@ void TestConstantIteratorIncrement(void) } DECLARE_UNITTEST(TestConstantIteratorIncrement); -void TestConstantIteratorIncrementBig(void) -{ - long long int n = 10000000000ULL; - - thrust::constant_iterator begin(1); - thrust::constant_iterator end = begin + n; - - ASSERT_EQUAL(thrust::distance(begin, end), n); -} -DECLARE_UNITTEST(TestConstantIteratorIncrementBig); - void TestConstantIteratorComparison(void) { using namespace thrust; @@ -96,7 +85,7 @@ void TestMakeConstantIterator(void) ASSERT_EQUAL(13, *iter0); // test two argument version - constant_iterator iter1 = make_constant_iterator(13, 7); + constant_iterator iter1 = make_constant_iterator(13, 7); ASSERT_EQUAL(13, *iter1); ASSERT_EQUAL(7, iter1 - iter0); diff --git a/thrust/iterator/detail/constant_iterator_base.h b/thrust/iterator/detail/constant_iterator_base.h index 56b1cc4f4..6b35a906b 100644 --- a/thrust/iterator/detail/constant_iterator_base.h +++ b/thrust/iterator/detail/constant_iterator_base.h @@ -45,7 +45,7 @@ template + thrust::detail::identity_ >::type incrementable; typedef typename thrust::counting_iterator<