From d0f68338ef003543b406a48b231bcf19bb45a338 Mon Sep 17 00:00:00 2001 From: eschnett Date: Sun, 23 Mar 2014 02:13:34 +0000 Subject: Avoid compiler warning git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/Boundary/trunk@326 6a38eb6e-646e-4a02-a296-d141613ad6c4 --- src/Check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Check.c b/src/Check.c index 0bf0a75..f99b6a8 100644 --- a/src/Check.c +++ b/src/Check.c @@ -133,7 +133,7 @@ void BndSanityCheckWidths(const cGH *GH, char *fullname = CCTK_FullName (varindex); const char dims[3] = "xyz"; const char *cond = boundary_widths[i] < 0 ? "<0" : ">100"; - assert (dim < sizeof(dims)); + assert (dim < (int)sizeof(dims)); CCTK_VError (__LINE__, __FILE__, CCTK_THORNSTRING, "Tried to register a physical boundary condition \"%s\" for variable \"%s\" with a boundary zone width %s in the %c direction -- this looks like an error.", bcname, fullname, cond, dims[dim]); -- cgit v1.2.3