From ff7bec703ba0e91ba338b182a6818eb6fb85f40d Mon Sep 17 00:00:00 2001 From: Kazuki Sakamoto Date: Thu, 4 May 2017 09:12:34 -0700 Subject: [PATCH] Fix build and test Summary: Closes https://github.com/facebook/yoga/pull/543 Reviewed By: emilsjolander Differential Revision: D4997389 Pulled By: splhack fbshipit-source-id: b4b3aa4cba29063df93fd2a57f96031a8fa393de --- csharp/Yoga/YGInterop.cpp | 2 +- csharp/tests/Facebook.Yoga/YogaNodeTest.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/csharp/Yoga/YGInterop.cpp b/csharp/Yoga/YGInterop.cpp index 293b8ef4..38da38c4 100644 --- a/csharp/Yoga/YGInterop.cpp +++ b/csharp/Yoga/YGInterop.cpp @@ -27,5 +27,5 @@ static int unmanagedLogger(const YGConfigRef config, void YGInteropSetLogger(YGInteropLogger managedLogger) { gManagedLogger = managedLogger; - YGSetLogger(YGConfigGetDefault(), &unmanagedLogger); + YGConfigSetLogger(YGConfigGetDefault(), &unmanagedLogger); } diff --git a/csharp/tests/Facebook.Yoga/YogaNodeTest.cs b/csharp/tests/Facebook.Yoga/YogaNodeTest.cs index a0a76759..9af9ceeb 100644 --- a/csharp/tests/Facebook.Yoga/YogaNodeTest.cs +++ b/csharp/tests/Facebook.Yoga/YogaNodeTest.cs @@ -164,7 +164,7 @@ namespace Facebook.Yoga return MeasureOutput.Make(123.4f, 81.7f); }); node.CalculateLayout(); - Assert.AreEqual(123.0f, node.LayoutWidth); + Assert.AreEqual(124.0f, node.LayoutWidth); Assert.AreEqual(82.0f, node.LayoutHeight); node = new YogaNode(new YogaConfig{PointScaleFactor = 0});