Skip to content

Commit

Permalink
fix: saturating sub in debug msg (#12525)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 authored Nov 17, 2023
1 parent afc47a1 commit f78c8b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/polars-io/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ pub(crate) fn finish_reader<R: ArrowReader>(
.map(|df: &DataFrame| df.height())
.sum::<usize>();
if polars_core::config::verbose() {
eprintln!("sliced off {} rows of the 'DataFrame'. These lines were read because they were in a single chunk.", df.height() - n)
eprintln!("sliced off {} rows of the 'DataFrame'. These lines were read because they were in a single chunk.", df.height().saturating_sub(n))
}
parsed_dfs.push(df.slice(0, len));
break;
Expand Down

0 comments on commit f78c8b4

Please sign in to comment.