My compiler (gcc 4.6.3) didn't complain, and my code makes use of the comparison.