From 95ba2f9dbf20785ce98dd3e850a044fb56ede3cc Mon Sep 17 00:00:00 2001 From: fireice-uk Date: Tue, 25 Apr 2017 20:58:37 +0100 Subject: [PATCH] Fix off-by-one --- autoAdjust.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoAdjust.hpp b/autoAdjust.hpp index 8414b3e..fd24ea9 100644 --- a/autoAdjust.hpp +++ b/autoAdjust.hpp @@ -59,7 +59,7 @@ public: { bool double_mode; - if(L3KB_size < 0) + if(L3KB_size <= 0) break; double_mode = L3KB_size / 2048 > (int32_t)(corecnt-i);