Skip to content

Commit

Permalink
Fix Wrong casting on implicit IniValue operator for Int32
Browse files Browse the repository at this point in the history
  • Loading branch information
neon-nyan committed Dec 16, 2024
1 parent 5a70e79 commit d3cceab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hi3Helper.Core/Data/IniValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ public TNumber ToNumber<TNumber>(TNumber? defaultValue = null)

public static implicit operator ushort(IniValue value) => value.ToNumber<ushort>();

public static implicit operator int(IniValue value) => value.ToNumber<ushort>();
public static implicit operator int(IniValue value) => value.ToNumber<int>();

public static implicit operator uint(IniValue value) => value.ToNumber<uint>();

Expand Down

0 comments on commit d3cceab

Please sign in to comment.