From 33d8f9206686d0e7599b2a3fed94c7bac7ea9ec0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com>
Date: Wed, 10 Apr 2024 12:56:57 +0200
Subject: [PATCH] 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)
---
 src/output/VTKWriter.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/output/VTKWriter.cpp b/src/output/VTKWriter.cpp
index cd7834d71..d33c5e0d2 100644
--- a/src/output/VTKWriter.cpp
+++ b/src/output/VTKWriter.cpp
@@ -222,7 +222,7 @@ struct VTKWriter::VTKType
       if constexpr (std::is_unsigned_v<DataType>) {
         return "UInt" + stringify(sizeof(DataType) * 8);
       } else {
-        return "UInt" + stringify(sizeof(DataType) * 8);
+        return "Int" + stringify(sizeof(DataType) * 8);
       }
     } else if constexpr (std::is_floating_point_v<DataType>) {
       return "Float" + stringify(sizeof(DataType) * 8);
-- 
GitLab