Skip to content

Commit

Permalink
fix uninitialized variable in constexpr function
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Nov 13, 2020
1 parent 7a186ad commit 11df0fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/llama/Array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ namespace llama

LLAMA_FN_HOST_ACC_INLINE constexpr friend auto operator+(const Array& a, const Array& b) -> Array
{
Array temp;
Array temp{};
for (std::size_t i = 0; i < N; ++i)
temp[i] = a[i] + b[i];
return temp;
Expand Down

0 comments on commit 11df0fd

Please sign in to comment.