Skip to content

Commit

Permalink
mode_t: add explit conversion to ushort (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmds authored Jul 11, 2019
1 parent cc01dc1 commit f336956
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Sources/linux.common/types.cs
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,8 @@ public struct mode_t : IEquatable<mode_t>

public static implicit operator mode_t(ushort value) => new mode_t(value);

public static explicit operator ushort(mode_t value) => (ushort)(value);

public override string ToString() => Value.ToString();

public override int GetHashCode() => Value.GetHashCode();
Expand Down

0 comments on commit f336956

Please sign in to comment.