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});