Debian Codegraph @

staticcheck/sa4015/testdata/go1.0/CheckMathInt/CheckMathInt.go

raw
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 }