From 8f8fbad0d4a76456fcf020f03e317d7c471d1c05 Mon Sep 17 00:00:00 2001 From: Roland Haas Date: Sun, 29 Dec 2024 21:28:10 -0500 Subject: [PATCH] CarpetX: add const in cast for debug output --- CarpetX/src/driver.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CarpetX/src/driver.cxx b/CarpetX/src/driver.cxx index 7fba76eff..bb85d2821 100644 --- a/CarpetX/src/driver.cxx +++ b/CarpetX/src/driver.cxx @@ -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