Fix casting bug introduced in 127c6fd6
authorFraser Waters <frassle@gmail.com>
Sun, 6 Aug 2017 17:06:36 +0000 (18:06 +0100)
committerFraser Waters <frassle@gmail.com>
Sun, 6 Aug 2017 17:06:40 +0000 (18:06 +0100)
A "&" operator was accidently removed when updating variables to
auto-properties.

src/OpenTK/Platform/MacOS/Cocoa/NSFloat.cs

index 21a84c0..8ee2a7e 100644 (file)
@@ -91,7 +91,7 @@ namespace OpenTK.Platform.MacOS
             {
                 if (IntPtr.Size == 4)
                 {
-                    return *(float*)f._value;
+                    return *(float*)&f._value;
                 }
                 else
                 {