Avoid overflowing for_each_n's counter for input size near the threshold.
Avoid overflowing for_each_n's counter for input size near the threshold.

thrust/thrust,thrust/thrust,xiongzhanblake/thrust_src,zeryx/thrust,GrimDerp/thrust,zeryx/thrust,thvasilo/thrust,zhenglaizhang/thrust,thrust/thrust,Ricardo666666/thrust,sarvex/thrust,sarvex/thrust,Ricardo666666/thrust,xiongzhanblake/thrust_src,raygit/thrust,xiongzhanblake/thrust,thrust/thrust,zhenglaizhang/thrust,egaburov/thrust,andrewcorrigan/thrust-multi-permutation-iterator,arnabgho/thrust,thvasilo/thrust,marksantos/thrust,dachziegel/thrust,GrimDerp/thrust,jaredhoberock/thrust,egaburov/thrust,arnabgho/thrust,mohamed-ali/thrust,zeryx/thrust,jaredhoberock/thrust,sdalton1/thrust,mohamed-ali/thrust,raygit/thrust,jaredhoberock/thrust,arnabgho/thrust,xiongzhanblake/thrust_src,marksantos/thrust,zhenglaizhang/thrust,thvasilo/thrust,Ricardo666666/thrust,thrust/thrust,marksantos/thrust,jaredhoberock/thrust,xiongzhanblake/thrust,mohamed-ali/thrust,dachziegel/thrust,sdalton1/thrust,raygit/thrust,jaredhoberock/thrust,egaburov/thrust,andrewcorrigan/thrust-multi-permutation-iterator,andrewcorrigan/thrust-multi-permutation-iterator,sdalton1/thrust,sarvex/thrust,GrimDerp/thrust,dachziegel/thrust,xiongzhanblake/thrust