Fix typos.
This commit is contained in:
parent
4b952c4b95
commit
53e9ca890b
|
@ -20,9 +20,9 @@ import "image"
|
||||||
|
|
||||||
// Keep value in [0,255] range.
|
// Keep value in [0,255] range.
|
||||||
func clampUint8(in int32) uint8 {
|
func clampUint8(in int32) uint8 {
|
||||||
// casting a negative int to an uint will result in an overflown large int.
|
// casting a negative int to an uint will result in an overflown
|
||||||
// this behavior will be exploited here and in other functions to archive
|
// large uint. this behavior will be exploited here and in other functions
|
||||||
// a higher performance.
|
// to achieve a higher performance.
|
||||||
if uint32(in) < 256 {
|
if uint32(in) < 256 {
|
||||||
return uint8(in)
|
return uint8(in)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user