Skip to content

Commit 6c86b23

Browse files
Fix uninitialized read in lgamma implementation
Fix #456 Fix #807
1 parent 5ac7edf commit 6c86b23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/xsimd/arch/generic/xsimd_generic_math.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ namespace xsimd
12351235
inf_result = (x == constants::infinity<batch_type>()) || inf_result;
12361236
#endif
12371237
auto ltza = a < batch_type(0.);
1238-
batch_type r;
1238+
batch_type r(0);
12391239
batch_type r1 = other(q);
12401240
if (any(ltza))
12411241
{

0 commit comments

Comments
 (0)