Cast to unsigned inside CV_XADD to quiet nvcc