Skip to content
Snippets Groups Projects
Commit 33d8f920 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fix tag for signed integers in vtu outputs

All integer values were marked as unsigned.
Was not noticed since output data were probably too small (<2^31)
parent 21fb805a
Branches
No related tags found
1 merge request!184Fix tag for signed integers in vtu outputs
...@@ -222,7 +222,7 @@ struct VTKWriter::VTKType ...@@ -222,7 +222,7 @@ struct VTKWriter::VTKType
if constexpr (std::is_unsigned_v<DataType>) { if constexpr (std::is_unsigned_v<DataType>) {
return "UInt" + stringify(sizeof(DataType) * 8); return "UInt" + stringify(sizeof(DataType) * 8);
} else { } else {
return "UInt" + stringify(sizeof(DataType) * 8); return "Int" + stringify(sizeof(DataType) * 8);
} }
} else if constexpr (std::is_floating_point_v<DataType>) { } else if constexpr (std::is_floating_point_v<DataType>) {
return "Float" + stringify(sizeof(DataType) * 8); return "Float" + stringify(sizeof(DataType) * 8);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment