diff options
-rw-r--r-- | src/slab.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -665,7 +665,7 @@ int Slab_Transfer (cGH * const cctkGH, bufind = bufind * srcdetail[n*dim+c].len + bufipos[d]; } assert (srcind < srclentot); - assert (bufind < srccount[n]); + assert (bufind < (size_t)srccount[n]); ((CCTK_REAL*)srcdata)[srcoffset[n] + bufind] = ((const CCTK_REAL*)srcptr)[srcind]; } @@ -729,7 +729,7 @@ int Slab_Transfer (cGH * const cctkGH, bufind = bufind * dstdetail[n*dim+d].len + bufipos[d]; dstind = dstind * info[d].dst.local.len + dstipos[d] - info[d].dst.local.off; } - assert (bufind < dstcount[n]); + assert (bufind < (size_t)dstcount[n]); assert (dstind < dstlentot); ((CCTK_REAL*)dstptr)[dstind] = ((const CCTK_REAL*)dstdata)[dstoffset[n] + bufind]; |