Skip to content

Commit 9bec084

Browse files
Anton-LepsychocoderHPC
authored andcommitted
Fix of the 'sum' function.
The error was due to an uninitialized value of `result`.
1 parent 3021da3 commit 9bec084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/isaac/isaac_functors.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ namespace isaac
163163
template<int N>
164164
ISAAC_HOST_DEVICE_INLINE static isaac_float_dim<1> call(const isaac_float_dim<N> v, const isaac_float4& p)
165165
{
166-
isaac_float_dim<1> result;
166+
isaac_float_dim<1> result(0.0);
167167

168168
for(int i = 0; i < N; ++i)
169169
{

0 commit comments

Comments
 (0)