Skip to content

Commit

Permalink
loongarch64 temporary fixed building failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
kekyo committed Apr 14, 2024
1 parent bdf1a7f commit 591211f
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -991,11 +991,18 @@ public uint capabilities
set => this.capabilities_ = (uint)value;
}

[FieldOffset(16)] private fixed uint reserved_[1];
public uint[] reserved
[FieldOffset(16)] private byte flags_;
public byte flags
{
get => this.flags_;
set => this.flags_ = (byte)value;
}

[FieldOffset(17)] private fixed byte reserved_[3];
public byte[] reserved
{
get { fixed (uint* p = this.reserved_) { return get(p, 1); } }
set { fixed (uint* p = this.reserved_) { set(p, value, 1); } }
get { fixed (byte* p = this.reserved_) { return get(p, 3); } }
set { fixed (byte* p = this.reserved_) { set(p, value, 3); } }
}

}
Expand Down

0 comments on commit 591211f

Please sign in to comment.