From 72320ad181652fe0505869e3c14057a22650d8f4 Mon Sep 17 00:00:00 2001 From: VPeruS Date: Wed, 7 Jun 2017 07:14:54 +0300 Subject: [PATCH] Fix incorect type cast --- src/OpenTK/Platform/MacOS/Cocoa/NSFloat.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenTK/Platform/MacOS/Cocoa/NSFloat.cs b/src/OpenTK/Platform/MacOS/Cocoa/NSFloat.cs index 899ecc32..39b55d36 100644 --- a/src/OpenTK/Platform/MacOS/Cocoa/NSFloat.cs +++ b/src/OpenTK/Platform/MacOS/Cocoa/NSFloat.cs @@ -118,7 +118,7 @@ namespace OpenTK.Platform.MacOS } else { - return *(float*)&f.value; + return *(double*)&f.value; } } }