Permalink
Browse files

Workaround fix for Visual Studio

Reviewed By: emilsjolander

Differential Revision: D4191268

fbshipit-source-id: 53fdcc388292e76c2b97ad071f0d7c27d0613ecf
  • Loading branch information...
1 parent 07f67fa commit c5f6e864f928e7145a94f85224f0e8c43701db78 @splhack splhack committed with Facebook Github Bot Nov 17, 2016
Showing with 2 additions and 2 deletions.
  1. +1 −1 React/CSSLayout/CSSLayout.c
  2. +1 −1 ReactCommon/CSSLayout/CSSLayout/CSSLayout.c
@@ -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;
@@ -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;

0 comments on commit c5f6e86

Please sign in to comment.