Comparing floats

Does anything appear wrong with the statement

if(floatA>floatB)return;

I keep getting an error:
CUDALink has experienced an internal error

The code is in c++, it is just interfacing with CUDA and Mathematica.
Assuming floatA and floatB are both floats, there is nothing wrong with that statement.
Topic archived. No new replies allowed.