From 4275216fe950c3a8290ed9154e5c998e3b64718e Mon Sep 17 00:00:00 2001 From: Yuki Izumi Date: Tue, 18 Jul 2017 14:24:46 +1000 Subject: [PATCH] Fix index_probe bounds check --- src/remstack.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remstack.rs b/src/remstack.rs index 068b392e..72e81f04 100644 --- a/src/remstack.rs +++ b/src/remstack.rs @@ -40,7 +40,7 @@ impl RemStack { } fn index_probe(&self, idx: usize) -> Option { - if idx > self.vec.len() { + if idx >= self.vec.len() { return None; }