Fix scalar compares: a true result should be 0xffff, not 1