From 9943d009541ab74349ab203155fdf4d38de1baed Mon Sep 17 00:00:00 2001 From: Marco Lampacrescia Date: Tue, 12 Nov 2024 17:33:55 +0100 Subject: [PATCH] Fix buggy casting in traces exporter Signed-off-by: Marco Lampacrescia --- src/samples/traces_exporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/samples/traces_exporter.cpp b/src/samples/traces_exporter.cpp index 1ce0466..6f3b01e 100644 --- a/src/samples/traces_exporter.cpp +++ b/src/samples/traces_exporter.cpp @@ -83,7 +83,7 @@ void TracesExporter::addNextState(const storm::generator::CompressedState& state } // Integers for (const auto& int_info : _var_info.integerVariables) { - const uint_fast64_t int_value = state.getAsInt(int_info.bitOffset, int_info.bitWidth) + int_info.lowerBound; + const int_fast64_t int_value = state.getAsInt(int_info.bitOffset, int_info.bitWidth) + int_info.lowerBound; _file << int_value << ";"; } _file << "\n";