diff --git a/inst/include/epiworld/tool-meat.hpp b/inst/include/epiworld/tool-meat.hpp index a4925c55..6d2180a7 100644 --- a/inst/include/epiworld/tool-meat.hpp +++ b/inst/include/epiworld/tool-meat.hpp @@ -490,10 +490,10 @@ inline void Tool::print() const printf_epiworld("Tool : %s\n", tool_name->c_str()); printf_epiworld("Id : %s\n", (id < 0)? std::string("(empty)").c_str() : std::to_string(id).c_str()); - printf_epiworld("state_init : %i\n", state_init); - printf_epiworld("state_post : %i\n", state_post); - printf_epiworld("queue_init : %i\n", queue_init); - printf_epiworld("queue_post : %i\n", queue_post); + printf_epiworld("state_init : %i\n", static_cast(state_init)); + printf_epiworld("state_post : %i\n", static_cast(state_post)); + printf_epiworld("queue_init : %i\n", static_cast(queue_init)); + printf_epiworld("queue_post : %i\n", static_cast(queue_post)); } diff --git a/inst/include/epiworld/virus-meat.hpp b/inst/include/epiworld/virus-meat.hpp index c0fae7a1..1850f295 100644 --- a/inst/include/epiworld/virus-meat.hpp +++ b/inst/include/epiworld/virus-meat.hpp @@ -677,12 +677,12 @@ inline void Virus::print() const printf_epiworld("Virus : %s\n", virus_name->c_str()); printf_epiworld("Id : %s\n", (id < 0)? std::string("(empty)").c_str() : std::to_string(id).c_str()); - printf_epiworld("state_init : %i\n", state_init); - printf_epiworld("state_post : %i\n", state_post); - printf_epiworld("state_removed : %i\n", state_removed); - printf_epiworld("queue_init : %i\n", queue_init); - printf_epiworld("queue_post : %i\n", queue_post); - printf_epiworld("queue_removed : %i\n", queue_removed); + printf_epiworld("state_init : %i\n", static_cast(state_init)); + printf_epiworld("state_post : %i\n", static_cast(state_post)); + printf_epiworld("state_removed : %i\n", static_cast(state_removed)); + printf_epiworld("queue_init : %i\n", static_cast(queue_init)); + printf_epiworld("queue_post : %i\n", static_cast(queue_post)); + printf_epiworld("queue_removed : %i\n", static_cast(queue_removed)); }