mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-03 17:55:42 +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)]
|
// or [StructLayout(LayoutKind.Explicit)]
|
||||||
private static bool CheckStructLayoutAttribute(Type type)
|
private static bool CheckStructLayoutAttribute(Type type)
|
||||||
{
|
{
|
||||||
StructLayoutAttribute[] attr = (StructLayoutAttribute[])
|
StructLayoutAttribute[] attr =
|
||||||
type.GetCustomAttributes(typeof(StructLayoutAttribute), true);
|
(StructLayoutAttribute[])type.GetCustomAttributes(typeof(StructLayoutAttribute), true);
|
||||||
|
|
||||||
if ((attr == null) ||
|
if ((attr == null) ||
|
||||||
(attr != null && attr.Length > 0 && attr[0].Value != LayoutKind.Explicit && attr[0].Pack != 1))
|
(attr != null && attr.Length > 0 && attr[0].Value != LayoutKind.Explicit && attr[0].Pack != 1))
|
||||||
|
|
Loading…
Reference in a new issue