From 50fd8e44a878e0a7d449bf6ab8ce88cb3d110d63 Mon Sep 17 00:00:00 2001 From: knarf Date: Thu, 6 Dec 2012 05:27:31 +0000 Subject: correct type cast (add const) git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/LocalReduce/trunk@98 7daa882c-dc44-4453-834e-278d26b18e6a --- src/local_reductions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/local_reductions.h b/src/local_reductions.h index 533eef6..ac4c8aa 100644 --- a/src/local_reductions.h +++ b/src/local_reductions.h @@ -58,7 +58,7 @@ extern "C" { } \ sum_indices += actual_indices[k]*product; \ } \ - weight_value = ((CCTK_REAL *) weight)[sum_indices]; \ + weight_value = ((const CCTK_REAL *) weight)[sum_indices]; \ \ REDUCTION_PREOP_CAST(inval, typed_vdata,sum_indices, out_type); \ WEIGHTED_REDUCTION_OPERATION(*outval,inval,weight_value); \ -- cgit v1.2.3