Fix a -Wenum-compare warning in cudev