diff options
author | knarf <knarf@7daa882c-dc44-4453-834e-278d26b18e6a> | 2012-12-06 05:27:31 +0000 |
---|---|---|
committer | knarf <knarf@7daa882c-dc44-4453-834e-278d26b18e6a> | 2012-12-06 05:27:31 +0000 |
commit | 50fd8e44a878e0a7d449bf6ab8ce88cb3d110d63 (patch) | |
tree | 210c34781e42987c411a345209f8f8ff545eb981 | |
parent | 2cee15549d10aaf2560e2e77e532d80748698e2d (diff) |
correct type cast (add const)
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/LocalReduce/trunk@98 7daa882c-dc44-4453-834e-278d26b18e6a
-rw-r--r-- | src/local_reductions.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); \ |