Skip to content

Commit

Permalink
Make std.parallelism unittests compile on 64-bit again.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsimcha committed Jun 9, 2011
1 parent 5a3761b commit ba11490
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions std/parallelism.d
Expand Up @@ -3387,7 +3387,7 @@ unittest {

foreach(i, ref elem; poolInstance.parallel(arr)) {
elem++;
nums[i] = i + 2;
nums[i] = cast(uint) i + 2;
nums2[i] = elem;
}

Expand All @@ -3399,7 +3399,7 @@ unittest {
auto range = filter!"a != 666"([0, 1, 2, 3, 4]);

foreach(i, elem; poolInstance.parallel(range)) {
nums[i] = i;
nums[i] = cast(uint) i;
}

assert(nums == [0,1,2,3,4]);
Expand Down Expand Up @@ -3459,7 +3459,7 @@ unittest {

nums = new uint[1000];
foreach(i; parallel(iota(1000))) {
nums[i] = i;
nums[i] = cast(uint) i;
}
assert(equal(nums, iota(1000)));

Expand Down

0 comments on commit ba11490

Please sign in to comment.