mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Fix VTKDataSetWriter writing char
types
This commit is contained in:
parent
bf6d6ca517
commit
9bb10b3961
@ -96,7 +96,15 @@ struct OutputArrayDataFunctor
|
||||
auto value = portal.Get(valueIndex);
|
||||
for (vtkm::IdComponent cIndex = 0; cIndex < value.GetNumberOfComponents(); ++cIndex)
|
||||
{
|
||||
out << ((cIndex == 0) ? "" : " ") << value[cIndex];
|
||||
out << ((cIndex == 0) ? "" : " ");
|
||||
if (std::numeric_limits<T>::is_integer && sizeof(T) == 1)
|
||||
{
|
||||
out << static_cast<int>(value[cIndex]);
|
||||
}
|
||||
else
|
||||
{
|
||||
out << value[cIndex];
|
||||
}
|
||||
}
|
||||
out << "\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user