Workaround fix for Visual Studio

Reviewed By: emilsjolander

Differential Revision: D4191268

fbshipit-source-id: 53fdcc388292e76c2b97ad071f0d7c27d0613ecf
This commit is contained in:
Kazuki Sakamoto
2016-11-17 08:56:18 -08:00
committed by Facebook Github Bot
parent 07f67fa225
commit c5f6e864f9
2 changed files with 2 additions and 2 deletions

View File

@@ -2519,7 +2519,7 @@ void CSSLog(CSSLogLevel level, const char *format, ...) {
va_end(args);
}
static bool experimentalFeatures[CSSExperimentalFeatureCount];
static bool experimentalFeatures[CSSExperimentalFeatureCount + 1];
void CSSLayoutSetExperimentalFeatureEnabled(CSSExperimentalFeature feature, bool enabled) {
experimentalFeatures[feature] = enabled;

View File

@@ -2519,7 +2519,7 @@ void CSSLog(CSSLogLevel level, const char *format, ...) {
va_end(args);
}
static bool experimentalFeatures[CSSExperimentalFeatureCount];
static bool experimentalFeatures[CSSExperimentalFeatureCount + 1];
void CSSLayoutSetExperimentalFeatureEnabled(CSSExperimentalFeature feature, bool enabled) {
experimentalFeatures[feature] = enabled;