Index: src/jsregexp.h |
diff --git a/src/jsregexp.h b/src/jsregexp.h |
index 3ed5a7e43da743b3c4101d72a2e6192fff0755e6..b9b2f60406d9c68c4c823cdd6f452879ffdc3ea5 100644 |
--- a/src/jsregexp.h |
+++ b/src/jsregexp.h |
@@ -1447,7 +1447,7 @@ class RegExpEngine: public AllStatic { |
class OffsetsVector { |
public: |
- inline OffsetsVector(int num_registers) |
+ explicit inline OffsetsVector(int num_registers) |
: offsets_vector_length_(num_registers) { |
if (offsets_vector_length_ > Isolate::kJSRegexpStaticOffsetsVectorSize) { |
vector_ = NewArray<int>(offsets_vector_length_); |