From b8d31c80eed9648d59f92b7ed0aa3ce91ed823c2 Mon Sep 17 00:00:00 2001 From: Eh2406 Date: Wed, 13 Sep 2017 23:35:53 -0400 Subject: [PATCH] clarify types for rust/pull/44287 --- src/quantile.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/quantile.rs b/src/quantile.rs index 3c00e38..213b82b 100644 --- a/src/quantile.rs +++ b/src/quantile.rs @@ -168,7 +168,8 @@ impl Estimate for Quantile { } else { self.q[i] = self.linear(i, d); } - self.n[i] += d.approx().unwrap(); // d == +-1 + let delta: i64 = d.approx().unwrap(); // d == +-1 + self.n[i] += delta; } } }