summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2017-05-10 13:03:06 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-05-10 13:03:07 +0000
commit201c81947f23b3f43c2ff78d9c1078dd53157fe5 (patch)
treef4bbe15fca8e33ce89b3ffd19760bf0b7c59c50a
parente6cf6204eff91e50d600d5c3c83e424ecab526b7 (diff)
parent81cc43e7d3c4dcd197b3d3a0fa9d1a3be9413367 (diff)
Merge "Fix braino in enum use."
-rw-r--r--runtime/runtime.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h
index a2505e2292..8d047770ae 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -948,7 +948,8 @@ class Runtime {
std::unique_ptr<RuntimeCallbacks> callbacks_;
- std::atomic<uint32_t> deoptimization_counts_[static_cast<uint32_t>(DeoptimizationKind::kLast)];
+ std::atomic<uint32_t> deoptimization_counts_[
+ static_cast<uint32_t>(DeoptimizationKind::kLast) + 1];
DISALLOW_COPY_AND_ASSIGN(Runtime);
};