 
 template<typename KeyType, typename ValType, typename Comp>
 MGPU_HOST void SegSortPairsFromFlags(KeyType* keys_global,
-	ValType* values_global,  int count, const uint* flags_global,
+	ValType* values_global, int count, const uint* flags_global,
 	CudaContext& context, Comp comp, bool verbose) {
 
 	const bool Stable = true;

		(1 & numPasses) ? valsDest : valsSource, support.ranges_global, 
		comp);
	MGPU_SYNC_CHECK("KernelSegBlocksortFlags");

	if(1 & numPasses) {
		std::swap(keysSource, keysDest);


	// Each thread extracts its own head flags from the array in shared memory.
	flags = DeviceExtractHeadFlags(shared.flags, VT * tid, VT);
	
	DeviceSegBlocksort<NT, VT, Stable, HasValues>(keys_global, values_global,
		count2, shared.keys, shared.values, shared.ranges, flags, tid, block,
		keysDest_global, valsDest_global, ranges_global, comp);
