Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit f7f2129

Browse files
committed
Use fixed-size type for HeadFlagType.
1 parent c251892 commit f7f2129

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

thrust/system/detail/generic/scan_by_key.inl

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717

1818
#include <thrust/detail/config.h>
19+
#include <thrust/detail/cstdint.h>
1920
#include <thrust/system/detail/generic/scan_by_key.h>
2021
#include <thrust/functional.h>
2122
#include <thrust/transform.h>
@@ -108,7 +109,7 @@ __host__ __device__
108109
AssociativeOperator binary_op)
109110
{
110111
using OutputType = typename thrust::iterator_traits<InputIterator2>::value_type;
111-
using HeadFlagType = unsigned int;
112+
using HeadFlagType = thrust::detail::uint32_t;
112113

113114
const size_t n = last1 - first1;
114115

@@ -204,7 +205,7 @@ __host__ __device__
204205
AssociativeOperator binary_op)
205206
{
206207
using OutputType = T;
207-
using HeadFlagType = unsigned int;
208+
using HeadFlagType = thrust::detail::uint32_t;
208209

209210
const size_t n = last1 - first1;
210211

0 commit comments

Comments
 (0)