Skip to content

Commit

Permalink
Make gYGNodeDefaults const
Browse files Browse the repository at this point in the history
Summary: At least one compiler seems to care about it.

Reviewed By: emilsjolander

Differential Revision: D5675518

fbshipit-source-id: 72a6e208263dde0b6bb46a78fedb2796d0e0a600
  • Loading branch information
swolchok authored and facebook-github-bot committed Aug 22, 2017
1 parent 35a9f33 commit c79c5e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yoga/Yoga.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ static const float kDefaultFlexGrow = 0.0f;
static const float kDefaultFlexShrink = 0.0f;
static const float kWebDefaultFlexShrink = 1.0f;

static YGNode gYGNodeDefaults = {
static const YGNode gYGNodeDefaults = {
.parent = NULL,
.children = NULL,
.hasNewLayout = true,
Expand Down

0 comments on commit c79c5e3

Please sign in to comment.