Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Jan 19, 2024
1 parent 5415603 commit abae861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/polars-ops/src/series/ops/negate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ pub fn negate(s: &Series) -> PolarsResult<Series> {
Duration(_) => {
let physical = s.to_physical_repr();
let ca = physical.i64().unwrap();
let s = negate_numeric(ca).into_series();
s.cast(s.dtype())?
let out = negate_numeric(ca).into_series();
out.cast(s.dtype())?
},
dt => polars_bail!(opq = neg, dt),
};
Expand Down

0 comments on commit abae861

Please sign in to comment.