Skip to content

Commit

Permalink
Small maybe update
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvillage committed Nov 17, 2024
1 parent e9acf0c commit 4de57cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ pub fn combine_vectors(data: List, out: Nullable<&str>) -> Result<Nullable<RMatr
ncols += mat.ncols();
} else if v.is_real() {
if nrows == 0 {
nrows = v.len();
nrows = v.as_real_slice().unwrap().len();
} else if v.as_real_slice().unwrap().len() != nrows {
panic!("all vectors must have the same length");
}
Expand Down

0 comments on commit 4de57cf

Please sign in to comment.