✏️ 修复 cd valid 判断

This commit is contained in:
fumiama
2022-01-06 12:40:48 +08:00
parent 2dc1fbde96
commit 8acf9b817f
2 changed files with 10 additions and 1 deletions

View File

@@ -24,3 +24,11 @@ func Abs(x int) int {
}
return x
}
// Abs64 返回绝对值,该函数将被内联
func Abs64(x int64) int64 {
if x < 0 {
return -x
}
return x
}