Skip to content

Commit

Permalink
Fix vector initialization bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lbushi25 committed Feb 8, 2024
1 parent 01a6431 commit c73e919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sycl/test-e2e/Regression/half_operators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ template <typename T> bool test(sycl::queue &queue) {

static const T inexact = static_cast<T>(0.1);

std::vector<T> result_source_vec{NumElems};
std::vector<T> input_vec{NumElems};
std::vector<T> result_source_vec(NumElems);
std::vector<T> input_vec(NumElems);;

for (size_t i = 0; i < NumElems; ++i) {
input_vec[i] = inexact * i;
Expand Down

0 comments on commit c73e919

Please sign in to comment.