aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-03-14 12:23:59 -0400
committerErik Schnetter <schnetter@gmail.com>2013-03-14 12:23:59 -0400
commit7c69433983a3e3f10bc39d921809a4df0bd92026 (patch)
treed5cf9f92db695241ad86c150598afeb1e6809a94 /Carpet/Carpet
parentab1794880cd5ec5a38ec0c1087bf0f3945c27615 (diff)
Carpet: Use C++ style cast to avoid compiler warning
Diffstat (limited to 'Carpet/Carpet')
-rw-r--r--Carpet/Carpet/src/Recompose.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/Carpet/src/Recompose.cc b/Carpet/Carpet/src/Recompose.cc
index fa4db13cf..097af15dd 100644
--- a/Carpet/Carpet/src/Recompose.cc
+++ b/Carpet/Carpet/src/Recompose.cc
@@ -249,7 +249,7 @@ namespace Carpet {
if (enable_no_storage) {
CCTK_WARN (CCTK_WARN_ALERT,
"Carpet completed its internal setup, and would now normally go on to allocate memory. Since the parameter Carpet::enable_no_storage has been set, Carpet will exit instead.");
- CCTK_Exit ((cGH*) cctkGH, 0);
+ CCTK_Exit (const_cast<cGH*> (cctkGH), 0);
}
return did_change;