Skip to content

Commit

Permalink
Fix small bug in chisq_colpairs.cpp - Issue rqtl#228
Browse files Browse the repository at this point in the history
  • Loading branch information
kbroman committed Nov 10, 2023
1 parent 4ff007c commit 056ffe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chisq_colpairs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ NumericMatrix chisq_colpairs(const IntegerMatrix& input) // matrix of integers;
{
const int n_row = input.rows();
const int n_col = input.cols();
if(n_col < 1)
if(n_col < 2)
throw std::invalid_argument("Need at least two columns.");

NumericMatrix result(n_col,n_col);
Expand Down

0 comments on commit 056ffe5

Please sign in to comment.