mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-12 18:20:27 +00:00
✏️ 修复 cd valid 判断
This commit is contained in:
@@ -24,3 +24,11 @@ func Abs(x int) int {
|
||||
}
|
||||
return x
|
||||
}
|
||||
|
||||
// Abs64 返回绝对值,该函数将被内联
|
||||
func Abs64(x int64) int64 {
|
||||
if x < 0 {
|
||||
return -x
|
||||
}
|
||||
return x
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user