Workaround fix for Visual Studio
Summary:
- Problem: Build error in Visual Studio since an array cannot have zero size.
- e6702e1168 (commitcomment-19839659)
- Solution: Add 1 until we'll have actual CSSExperimentalFeature value.
Reviewed By: emilsjolander
Differential Revision: D4191268
fbshipit-source-id: 53fdcc388292e76c2b97ad071f0d7c27d0613ecf
This commit is contained in:
committed by
Facebook Github Bot
parent
4b61cdccea
commit
32c175ac55
@@ -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;
|
||||
|
Reference in New Issue
Block a user