Skip to content

Commit 38860e6

Browse files
committed
fix: static Fixed64 const values
1 parent 8e88b57 commit 38860e6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/FixedMathSharp/Numerics/Fixed64.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@ public partial struct Fixed64 : IEquatable<Fixed64>, IComparable<Fixed64>, IEqua
2121
/// </summary>
2222
public long m_rawValue;
2323

24-
public static readonly Fixed64 MAX_VALUE = (Fixed64)FixedMath.MAX_VALUE_L;
25-
public static readonly Fixed64 MIN_VALUE = (Fixed64)FixedMath.MIN_VALUE_L;
24+
public static readonly Fixed64 MAX_VALUE = new Fixed64(FixedMath.MAX_VALUE_L);
25+
public static readonly Fixed64 MIN_VALUE = new Fixed64(FixedMath.MIN_VALUE_L);
2626

27-
public static readonly Fixed64 One = (Fixed64)FixedMath.ONE_L;
27+
public static readonly Fixed64 One = new Fixed64(FixedMath.ONE_L);
2828
public static readonly Fixed64 Two = One * 2;
2929
public static readonly Fixed64 Three = One * 3;
3030
public static readonly Fixed64 Half = One / 2;
3131
public static readonly Fixed64 Quarter = One / 4;
3232
public static readonly Fixed64 Eighth = One / 8;
33-
public static readonly Fixed64 Zero = (Fixed64)0;
33+
public static readonly Fixed64 Zero = new Fixed64(0);
3434

3535
/// <inheritdoc cref="FixedMath.EPSILON_L" />
36-
public static readonly Fixed64 Epsilon = (Fixed64)FixedMath.EPSILON_L;
36+
public static readonly Fixed64 Epsilon = new Fixed64(FixedMath.EPSILON_L);
3737
/// <inheritdoc cref="FixedMath.PRECISION_L" />
38-
public static readonly Fixed64 Precision = (Fixed64)FixedMath.PRECISION_L;
38+
public static readonly Fixed64 Precision = new Fixed64(FixedMath.PRECISION_L);
3939

4040
#endregion
4141

0 commit comments

Comments
 (0)