mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
change BOrder constant to 4 to set correct field bits
Summary: These constants are used for setting bit fields so they should be in power of 2 Reviewed By: davidaurelio Differential Revision: D14384999 fbshipit-source-id: fa1f6994c874aff7a039ca98d5947cba317fa749
This commit is contained in:
committed by
Facebook Github Bot
parent
972ee2edbd
commit
d31cc696fb
@@ -94,7 +94,7 @@ struct YGNodeContext {
|
||||
|
||||
const int MARGIN = 1;
|
||||
const int PADDING = 2;
|
||||
const int BORDER = 3;
|
||||
const int BORDER = 4;
|
||||
|
||||
static inline YGNodeContext* ygNodeRefToYGNodeContext(YGNodeRef node) {
|
||||
return reinterpret_cast<YGNodeContext*>(node->getContext());
|
||||
|
||||
Reference in New Issue
Block a user