tiff: Fix assignments in if()