tweak if statement

I realized that y is a char (0 to 255), instead of -255 to 255.