fixedpoint: fix default fixedpoint conversion

This commit is contained in:
c9s 2023-07-25 00:18:36 +08:00
parent 4cb9ff569a
commit 6691229809
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -561,7 +561,7 @@ func (x Value) Compare(y Value) int {
}
func Min(a, b Value) Value {
if a < b {
if a.Compare(b) < 0 {
return a
}
@ -569,7 +569,7 @@ func Min(a, b Value) Value {
}
func Max(a, b Value) Value {
if a > b {
if a.Compare(b) > 0 {
return a
}