From ab43d0b6cd88eaded5ec3a8247eab8f1bd824d96 Mon Sep 17 00:00:00 2001 From: "Brendan K. Krueger" Date: Fri, 13 Sep 2024 14:50:23 -0600 Subject: [PATCH] Should be == instead of =. --- test/test_array.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_array.cpp b/test/test_array.cpp index 3a9423fc..4ba8c6aa 100644 --- a/test/test_array.cpp +++ b/test/test_array.cpp @@ -23,7 +23,7 @@ TEST_CASE("array nominal element access (GPU)", "[array][GPU]") { // Can we read from it on the GPU? int count = 0; auto func = PORTABLE_LAMBDA(const int i, int &count) mutable { - if (arr[i] = i + 1) { + if (arr[i] == i + 1) { ++count; } };