diff options
author | Sven Gothel <[email protected]> | 2022-11-21 13:04:31 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-11-21 13:04:31 +0100 |
commit | 1b9b9b6e8645fe3551066c28359fae3c43a1f50e (patch) | |
tree | 812ff90dba8a04bea86a49c6713ff3632a83b910 /test/test_mm_sc_drf_01.cpp | |
parent | 6cc909f72c84e7808edc509e5ed7538065d18b39 (diff) |
ClangTidy: Fix test code
Diffstat (limited to 'test/test_mm_sc_drf_01.cpp')
-rw-r--r-- | test/test_mm_sc_drf_01.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_mm_sc_drf_01.cpp b/test/test_mm_sc_drf_01.cpp index 0acd41d..b106d85 100644 --- a/test/test_mm_sc_drf_01.cpp +++ b/test/test_mm_sc_drf_01.cpp @@ -69,8 +69,8 @@ class TestMemModelSCDRF01 { void reset(int v1, int array_value) { std::unique_lock<std::mutex> lock(mtx_value); // SC-DRF acquire and release @ scope exit value1 = v1; - for(int i=0; i<array_size; i++) { - array[i] = array_value; + for(int & i : array) { + i = array_value; } } |