mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-03 18:15:34 +00:00
Correct cast operator position.
This commit is contained in:
parent
af3aef4d9e
commit
5db88e0a8f
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue