mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
fixedpoint: fix default fixedpoint conversion
This commit is contained in:
parent
4cb9ff569a
commit
6691229809
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user