Skip to content

Commit

Permalink
Workaround fix for Visual Studio
Browse files Browse the repository at this point in the history
Reviewed By: emilsjolander

Differential Revision: D4191268

fbshipit-source-id: 53fdcc388292e76c2b97ad071f0d7c27d0613ecf
  • Loading branch information
splhack authored and Facebook Github Bot committed Nov 17, 2016
1 parent 07f67fa commit c5f6e86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion React/CSSLayout/CSSLayout.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion ReactCommon/CSSLayout/CSSLayout/CSSLayout.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c5f6e86

Please sign in to comment.