From 5db88e0a8fdc00facbf8a7478f6d2821b3ae77a5 Mon Sep 17 00:00:00 2001 From: Jarl Gullberg Date: Sun, 30 Jul 2017 17:47:43 +0200 Subject: [PATCH] Correct cast operator position. --- src/OpenTK/BlittableValueType.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenTK/BlittableValueType.cs b/src/OpenTK/BlittableValueType.cs index 264aa83f..23eade4c 100644 --- a/src/OpenTK/BlittableValueType.cs +++ b/src/OpenTK/BlittableValueType.cs @@ -118,8 +118,8 @@ namespace OpenTK // or [StructLayout(LayoutKind.Explicit)] private static bool CheckStructLayoutAttribute(Type type) { - StructLayoutAttribute[] attr = (StructLayoutAttribute[]) - type.GetCustomAttributes(typeof(StructLayoutAttribute), true); + StructLayoutAttribute[] attr = + (StructLayoutAttribute[])type.GetCustomAttributes(typeof(StructLayoutAttribute), true); if ((attr == null) || (attr != null && attr.Length > 0 && attr[0].Value != LayoutKind.Explicit && attr[0].Pack != 1))