From bff78704ccc7ec8c4e0fc33427ce1024ecc82bb6 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 22 Dec 2025 11:08:36 +0100 Subject: [PATCH] fix: Use of non-atomic variables --- .../builtin/include/content/views/view_pattern_editor.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/builtin/include/content/views/view_pattern_editor.hpp b/plugins/builtin/include/content/views/view_pattern_editor.hpp index a73a8cc62..2172c8504 100644 --- a/plugins/builtin/include/content/views/view_pattern_editor.hpp +++ b/plugins/builtin/include/content/views/view_pattern_editor.hpp @@ -121,13 +121,13 @@ namespace hex::plugin::builtin { bool m_triggerEvaluation = false; std::atomic m_triggerAutoEvaluate = false; - volatile bool m_lastEvaluationProcessed = true; - int m_lastEvaluationResult = false; + std::atomic m_lastEvaluationProcessed = true; + std::atomic m_lastEvaluationResult = 0; std::atomic m_runningEvaluators = 0; std::atomic m_runningParsers = 0; - bool m_changesWereParsed = false; + std::atomic m_changesWereParsed = false; PerProvider m_hasUnevaluatedChanges; std::chrono::time_point m_lastEditorChangeTime;