clarify types for rust/pull/44287

This commit is contained in:
Eh2406 2017-09-13 23:35:53 -04:00
parent 9daef2c101
commit b8d31c80ee

View File

@ -168,7 +168,8 @@ impl Estimate for Quantile {
} else { } else {
self.q[i] = self.linear(i, d); 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;
} }
} }
} }