☰
Debian Codegraph
@
2026.2.1-1
2026.1-4
2026.1-3
/
/
staticcheck
/
sa4015
/
testdata
/
go1.0
/
CheckMathInt
/
CheckMathInt.go
☽
☼
staticcheck/sa4015/testdata/go1.0/CheckMathInt/CheckMathInt.go
code
plain
raw
Expat
2016-2017 Dominik Honnef
debian/copyright
1
package pkg
2
3
import "math"
4
5
func fn(x int) {
6
math.Ceil(float64(x)) //@ diag(`on a converted integer is pointless`)
7
math.Floor(float64(x * 2)) //@ diag(`on a converted integer is pointless`)
8
}