Avoid comparison warnings.

Replace '==' to 'eq' because it is for numeric comparison.