33 lines
1016 B
Diff
33 lines
1016 B
Diff
|
From 942fd30a4b8e8016925f9fb6c7e41cb995a7b041 Mon Sep 17 00:00:00 2001
|
|||
|
From: =?UTF-8?q?Florian=20=22sp1rit=22=E2=80=8B?= <sp1rit@disroot.org>
|
|||
|
Date: Sat, 16 Mar 2024 21:05:00 +0100
|
|||
|
Subject: [PATCH] config/DataValues: fixed missing return statement
|
|||
|
MIME-Version: 1.0
|
|||
|
Content-Type: text/plain; charset=UTF-8
|
|||
|
Content-Transfer-Encoding: 8bit
|
|||
|
|
|||
|
this likely worked previously as on x86_64 gcc optimized the `result`
|
|||
|
variable into the rax register which is also used to return the return
|
|||
|
value.
|
|||
|
|
|||
|
Signed-off-by: Florian "sp1rit" <sp1rit@disroot.org>
|
|||
|
---
|
|||
|
src/config/ConfigDataValues.hpp | 1 +
|
|||
|
1 file changed, 1 insertion(+)
|
|||
|
|
|||
|
diff --git a/src/config/ConfigDataValues.hpp b/src/config/ConfigDataValues.hpp
|
|||
|
index 39c60a5..c162bb4 100644
|
|||
|
--- a/src/config/ConfigDataValues.hpp
|
|||
|
+++ b/src/config/ConfigDataValues.hpp
|
|||
|
@@ -61,6 +61,7 @@ class CGradientValueData : public ICustomConfigValueData {
|
|||
|
}
|
|||
|
|
|||
|
result += std::format("{}deg", (int)(m_fAngle * 180.0 / M_PI));
|
|||
|
+ return result;
|
|||
|
}
|
|||
|
};
|
|||
|
|
|||
|
--
|
|||
|
2.44.0
|
|||
|
|