Change equality check to stop warnings
Merge pull request #597 from vipulnsward/change_equality_check

Change equality check to stop warnings