diff options
author | Sergey Andreenko <seandree@microsoft.com> | 2017-11-20 16:20:56 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-20 16:20:56 -0800 |
commit | cafeb149142de903974e65725d110c7425215636 (patch) | |
tree | 86d4e4d77e2cb32c98e8cacd3fcbe4541a5a0497 /src/ToolBox | |
parent | 3a8a2ea7805422c92276ea9db3a2e7feed98d287 (diff) | |
download | coreclr-cafeb149142de903974e65725d110c7425215636.tar.gz coreclr-cafeb149142de903974e65725d110c7425215636.tar.bz2 coreclr-cafeb149142de903974e65725d110c7425215636.zip |
fix the adding (#15121)
Diffstat (limited to 'src/ToolBox')
-rw-r--r-- | src/ToolBox/superpmi/superpmi-shared/lightweightmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ToolBox/superpmi/superpmi-shared/lightweightmap.h b/src/ToolBox/superpmi/superpmi-shared/lightweightmap.h index 12e7100c2b..c31b43effe 100644 --- a/src/ToolBox/superpmi/superpmi-shared/lightweightmap.h +++ b/src/ToolBox/superpmi/superpmi-shared/lightweightmap.h @@ -374,7 +374,7 @@ public: // O(log n) version int first = 0; int mid = 0; - int last = numItems; + int last = numItems - 1; while (first <= last) { mid = (first + last) / 2; // compute mid point. |