Commit 41b8236a authored by Robert Maynard's avatar Robert Maynard

For GCC 4.8.4 'half' shadows a global variable with that name

parent 770912f9
......@@ -189,17 +189,17 @@ struct ConnIdxToCellIdCalc
while (length > 0)
{
vtkm::Id half = length / 2;
vtkm::Id pos = first + half;
vtkm::Id halfway = length / 2;
vtkm::Id pos = first + halfway;
vtkm::Id val = this->Offsets.Get(pos);
if (val <= inIdx)
{
first = pos + 1;
length -= half + 1;
length -= halfway + 1;
}
else
{
length = half;
length = halfway;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment