Skip to content

Commit

Permalink
Should be == instead of =.
Browse files Browse the repository at this point in the history
  • Loading branch information
BrendanKKrueger committed Sep 13, 2024
1 parent 77acce1 commit ab43d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};
Expand Down

0 comments on commit ab43d0b

Please sign in to comment.