Check equality instead of bit-mask - thanks to Tetsuya Mishima for reporting it

cmr=v1.7.5:reviewer=ompi-gk1.7