Getdistance return value

Minor style issue - not sure why a bitwise operator is used here. != would work as well and is IMO more readable.