Fix braino in enum use.
bug:37655083
Test: jdwp
Change-Id: I9611a43553aa753d2b8e9cb0dcd99484560f3e62
diff --git a/runtime/runtime.h b/runtime/runtime.h
index a2505e2..8d04777 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -948,7 +948,8 @@
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);
};