Avoid comparison warnigns.

Replace '==' to 'eq' because it is for numeric comparison.
Merge pull request #1 from matsuu/avoid-comparison-warning

Thank you.