9 Replies Latest reply on Mar 2, 2011 11:07 AM by spectral

    Compilation error : expression must have arithmetic, enum, or pointer type

    spectral

      Hi,

       

      I have a compilation error :

      "expression must have arithmetic, enum, or pointer type"

       

         if (Li != (clSpectrum)(0.f))

            ^



      But I don't know why ! The OpenCL spec tell that we can do this... even that we can do "Li != 0.f" !

      Please, can you advice ?

       

      float3 Li = ... if (Li != (float3)(0.f))