aboutsummaryrefslogtreecommitdiff
path: root/src/slab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/slab.c')
-rw-r--r--src/slab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slab.c b/src/slab.c
index 826c2f2..af5e8f9 100644
--- a/src/slab.c
+++ b/src/slab.c
@@ -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];