diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-03-14 12:23:59 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-03-14 12:23:59 -0400 |
commit | 7c69433983a3e3f10bc39d921809a4df0bd92026 (patch) | |
tree | d5cf9f92db695241ad86c150598afeb1e6809a94 /Carpet/Carpet | |
parent | ab1794880cd5ec5a38ec0c1087bf0f3945c27615 (diff) |
Carpet: Use C++ style cast to avoid compiler warning
Diffstat (limited to 'Carpet/Carpet')
-rw-r--r-- | Carpet/Carpet/src/Recompose.cc | 2 |
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; |