summaryrefslogtreecommitdiff
path: root/src/tests/common/fibers.cpp
diff options
context:
space:
mode:
authorGravatar arades792023-02-11 13:28:03 -0500
committerGravatar arades792023-02-14 12:33:11 -0500
commit45e13b03f372230dbf780f3fa87dd88f388af605 (patch)
tree555593e7e5016b6ba2a777d7417ada244abce458 /src/tests/common/fibers.cpp
parentMerge pull request #9795 from Kelebek1/biquad_fix (diff)
downloadyuzu-45e13b03f372230dbf780f3fa87dd88f388af605.tar.gz
yuzu-45e13b03f372230dbf780f3fa87dd88f388af605.tar.xz
yuzu-45e13b03f372230dbf780f3fa87dd88f388af605.zip
add static lifetime to constexpr values to force compile time evaluation where possible
Signed-off-by: arades79 <scravers@protonmail.com>
Diffstat (limited to 'src/tests/common/fibers.cpp')
-rw-r--r--src/tests/common/fibers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/common/fibers.cpp b/src/tests/common/fibers.cpp
index ecad7583f..c0b22d0ee 100644
--- a/src/tests/common/fibers.cpp
+++ b/src/tests/common/fibers.cpp
@@ -76,7 +76,7 @@ void TestControl1::ExecuteThread(u32 id) {
76 * doing all the work required. 76 * doing all the work required.
77 */ 77 */
78TEST_CASE("Fibers::Setup", "[common]") { 78TEST_CASE("Fibers::Setup", "[common]") {
79 constexpr std::size_t num_threads = 7; 79 constexpr static std::size_t num_threads = 7;
80 TestControl1 test_control{}; 80 TestControl1 test_control{};
81 test_control.thread_fibers.resize(num_threads); 81 test_control.thread_fibers.resize(num_threads);
82 test_control.work_fibers.resize(num_threads); 82 test_control.work_fibers.resize(num_threads);