Skip to content

Commit b8d31c8

Browse files
committed
clarify types for rust/pull/44287
1 parent 9daef2c commit b8d31c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/quantile.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ impl Estimate for Quantile {
168168
} else {
169169
self.q[i] = self.linear(i, d);
170170
}
171-
self.n[i] += d.approx().unwrap(); // d == +-1
171+
let delta: i64 = d.approx().unwrap(); // d == +-1
172+
self.n[i] += delta;
172173
}
173174
}
174175
}

0 commit comments

Comments
 (0)