     {
         bool firstInCell;
         bool firstGhost;
-        uint cur = hash[threadIdx.x];
+        unsigned int cur = hash[threadIdx.x];
         if (i == 0)
         {
             firstInCell = true;

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

    {
        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);
    }
}

