Browse Source

tests: fix for -Wall

Fix #9123
Alexandre Bouvier 3 năm trước cách đây
mục cha
commit
fa9b7db76f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/tests/video_core/buffer_base.cpp

+ 1 - 1
src/tests/video_core/buffer_base.cpp

@@ -44,7 +44,7 @@ public:
 
     [[nodiscard]] unsigned Count() const noexcept {
         unsigned count = 0;
-        for (const auto [index, value] : page_table) {
+        for (const auto& [index, value] : page_table) {
             count += value;
         }
         return count;