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:
Sidharth Guglani
2019-03-13 03:16:33 -07:00
committed by Facebook Github Bot
parent 3ad49d27d9
commit 42e3b78f04

View File

@@ -94,7 +94,7 @@ struct YGNodeContext {
const int MARGIN = 1; const int MARGIN = 1;
const int PADDING = 2; const int PADDING = 2;
const int BORDER = 3; const int BORDER = 4;
static inline YGNodeContext* ygNodeRefToYGNodeContext(YGNodeRef node) { static inline YGNodeContext* ygNodeRefToYGNodeContext(YGNodeRef node) {
return reinterpret_cast<YGNodeContext*>(node->getContext()); return reinterpret_cast<YGNodeContext*>(node->getContext());