The analyzer has detected a suspicious sequence of arguments passed to a method. Perhaps, some arguments are misplaced.
The example:
func SetARGB(a, r, g, b byte) { .... }
func Foo(A, R, G, B byte) {
var A, R, G, B byte
....
SetARGB(A, R, B, G)
}
When calling the SetARGB function, the B and G arguments were swapped.
The fixed code:
func SetARGB(a, r, g, b byte) { .... }
func Foo(A, R, G, B byte) {
var A, R, G, B byte
....
SetARGB(A, R, G, B)
}
Was this page helpful?
Your message has been sent. We will email you at
If you do not see the email in your inbox, please check if it is filtered to one of the following folders: