☰
Debian Codegraph
@
2026.2.1-1
2026.1-4
2026.1-3
/
/
staticcheck
/
sa4015
/
testdata
/
go1.18
/
CheckMathInt
/
CheckMathInt.go
☽
☼
staticcheck/sa4015/testdata/go1.18/CheckMathInt/CheckMathInt.go
code
plain
raw
Expat
2016-2017 Dominik Honnef
debian/copyright
1
package pkg
2
3
import "math"
4
5
func fn3[S int8 | int16](x S) {
6
math.Ceil(float64(x)) //@ diag(`on a converted integer is pointless`)
7
}
8
9
func fn4[S int8 | int16 | float32](x S) {
10
math.Ceil(float64(x))
11
}