         }
         else
         {
-            uint prev;
+            unsigned int prev;
             if (threadIdx.x > 0)
                 prev = hash[threadIdx.x-1];
             else

template<class TIn>
__global__ void
computeHashD(const TIn* pos,
        uint* particleIndex8, uint*  particleHash8, int n)
{
    int index0 = __mul24(blockIdx.x, blockDim.x);
    int index = index0 + threadIdx.x;

    {
        dim3 threads(BSIZE,1);
        dim3 grid((nbPoints+BSIZE-1)/BSIZE,1);
        computeHashD<float3><<< grid, threads >>>((const float3*)x, (unsigned int*)particleIndex8, (unsigned int*)particleHash8, nbPoints);
    }
}

