From 64b23cbb09a1b1c775f3d648f1e27af1fa9df5ca Mon Sep 17 00:00:00 2001 From: derekmeyer37 Date: Mon, 8 Jan 2024 15:42:41 -0700 Subject: [PATCH] updating agent-meat.hpp --- inst/include/epiworld/agent-meat.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/inst/include/epiworld/agent-meat.hpp b/inst/include/epiworld/agent-meat.hpp index 6bed922b..554658cd 100644 --- a/inst/include/epiworld/agent-meat.hpp +++ b/inst/include/epiworld/agent-meat.hpp @@ -687,20 +687,20 @@ inline void Agent::print( if (compressed) { printf_epiworld( - "Agent: %i, state: %s (%lu), Has virus: %s, NTools: %lu, NNeigh: %lu\n", - id, model->states_labels[state].c_str(), state, + "Agent: %i, state: %s (%i), Has virus: %s, NTools: %i, NNeigh: %i\n", + id, model->states_labels[state].c_str(), static_cast(state), virus == nullptr ? std::string("no").c_str() : std::string("yes").c_str(), - n_tools, neighbors.size() + static_cast(n_tools), neighbors.size() ); } else { printf_epiworld("Information about agent id %i\n", this->id); - printf_epiworld(" State : %s (%lu)\n", model->states_labels[state].c_str(), state); + printf_epiworld(" State : %s (%i)\n", model->states_labels[state].c_str(), static_cast(state)); printf_epiworld(" Has virus : %s\n", virus == nullptr ? std::string("no").c_str() : std::string("yes").c_str()); - printf_epiworld(" Tool count : %lu\n", n_tools); - printf_epiworld(" Neigh. count : %lu\n", neighbors.size()); + printf_epiworld(" Tool count : %i\n", static_cast(n_tools)); + printf_epiworld(" Neigh. count : %i\n", neighbors.size()); size_t nfeats = model->get_agents_data_ncols(); if (nfeats > 0)