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

Long have to be compared using equals