gradient: Fix warning/typo

In addition to c068c2122df3015c23dace66b58d8b841234716e