Long have to be compared using equals
Merge pull request #1048 from ArloL/patch-6

Long have to be compared using equals