Fix minor diagonal production code check.

Signed-off-by: OwenPatey <owen_patey@hotmail.com>