Skip to content

Commit

Permalink
sweptsine: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Jan 3, 2025
1 parent 586e3cd commit b8aa714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sweptsine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl Sweep {
})
.min_by(|a, b| a.2.partial_cmp(&b.2).unwrap_or(core::cmp::Ordering::Equal))
.ok_or(SweepError::Length)?;
let state = (rate as i64 * cycles as i64) << 32;
let state = ((rate * cycles as i32) as i64) << 32;
if state == 0 {
return Err(SweepError::Start);
}
Expand Down

0 comments on commit b8aa714

Please sign in to comment.