aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschnetter <schnetter@2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8>2002-10-22 22:45:53 +0000
committerschnetter <schnetter@2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8>2002-10-22 22:45:53 +0000
commiteb16cb1ac4a52cecc94e11e0f86168a9aca10c63 (patch)
tree6b2d1788c0901f4f990c73dd3c3073d855e3f8fe
parentab545316726524bd56e598d6ed2b836f9e0a8d20 (diff)
Small cleanups to remove warnings.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Slab/trunk@6 2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8
-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];