Skip to content

Commit 395111e

Browse files
committed
fix: judge value type
1 parent efd3d46 commit 395111e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

prpr/src/judge.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ pub enum Judgement {
154154
#[cfg(not(closed))]
155155
#[derive(Default)]
156156
pub(crate) struct JudgeInner {
157-
diffs: Vec<f32>,
157+
diffs: Vec<f64>,
158158

159159
combo: u32,
160160
max_combo: u32,
@@ -179,7 +179,7 @@ impl JudgeInner {
179179
}
180180
}
181181

182-
pub fn commit(&mut self, what: Judgement, diff: f32) {
182+
pub fn commit(&mut self, what: Judgement, diff: f64) {
183183
use Judgement::*;
184184
if matches!(what, Judgement::Good) {
185185
self.diffs.push(diff);

0 commit comments

Comments
 (0)