Skip to content

Commit 5af1961

Browse files
committed
fixed NativeTypeSpec on 32 bit platforms
1 parent 86c6a7f commit 5af1961

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/Native/NativeTypeSpec.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ struct NativeTypeSpec : IDisposable
1010
public readonly StrPtr Name;
1111
public readonly int BasicSize;
1212
public readonly int ItemSize;
13-
public readonly TypeFlags Flags;
13+
public readonly IntPtr Flags;
1414
public IntPtr Slots;
1515

1616
public NativeTypeSpec(TypeSpec spec)
@@ -20,7 +20,7 @@ public NativeTypeSpec(TypeSpec spec)
2020
this.Name = new StrPtr(spec.Name, Encoding.UTF8);
2121
this.BasicSize = spec.BasicSize;
2222
this.ItemSize = spec.ItemSize;
23-
this.Flags = spec.Flags;
23+
this.Flags = new IntPtr((long)spec.Flags);
2424

2525
unsafe
2626
{

0 commit comments

Comments
 (0)