From 42e3b78f04de6d24645529b99d1921c3fcec12b4 Mon Sep 17 00:00:00 2001 From: Sidharth Guglani Date: Wed, 13 Mar 2019 03:16:33 -0700 Subject: [PATCH] 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 --- java/jni/YGJNI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/jni/YGJNI.cpp b/java/jni/YGJNI.cpp index 71f04c6f..8463421f 100644 --- a/java/jni/YGJNI.cpp +++ b/java/jni/YGJNI.cpp @@ -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(node->getContext());