Skip to content

Commit

Permalink
CarpetX: add const in cast for debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaas80 committed Dec 30, 2024
1 parent 4704af8 commit 8f8fbad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CarpetX/src/driver.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2323,13 +2323,13 @@ operator<<(YAML::Emitter &yaml,
for (size_t i = 0; i < anytypevector.size(); ++i) {
switch (anytypevector.type()) {
case CCTK_VARIABLE_COMPLEX:
yaml << *(CCTK_COMPLEX *)anytypevector.data_at(i);
yaml << *(const CCTK_COMPLEX *)anytypevector.data_at(i);
break;
case CCTK_VARIABLE_REAL:
yaml << *(CCTK_REAL *)anytypevector.data_at(i);
yaml << *(const CCTK_REAL *)anytypevector.data_at(i);
break;
case CCTK_VARIABLE_INT:
yaml << *(CCTK_INT *)anytypevector.data_at(i);
yaml << *(const CCTK_INT *)anytypevector.data_at(i);
break;
default:
// missed to implement a type
Expand Down

0 comments on commit 8f8fbad

Please sign in to comment.