Skip to content

Commit e3ae881

Browse files
Update main.c
Signed-off-by: Lokesh Ranjan <lokesh.ranjan.phe23@itbhu.ac.in>
1 parent ccaf79d commit e3ae881

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • lib/node_modules/@stdlib/stats/base/dists/erlang/cdf/src

lib/node_modules/@stdlib/stats/base/dists/erlang/cdf/src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
*/
3737
double stdlib_base_dists_erlang_cdf( const double x, const int32_t k, const double lambda ) {
3838
if (
39-
!stdlib_base_is_nonnegative_integer( k )
39+
!stdlib_base_is_nonnegative_integer( k ) ||
40+
k <= 0
4041
) {
4142
return 0.0 / 0.0;
4243
}

0 commit comments

Comments
 (0)