EventTrace: take size_t as a constructor argument instead of int

This commit is contained in:
Tim Wojtulewicz 2023-02-17 16:59:54 -07:00 committed by Tim Wojtulewicz
parent 718cced7cd
commit 8e078299eb
2 changed files with 2 additions and 2 deletions

View file

@ -722,7 +722,7 @@ std::string DeltaVectorCreate::Generate(ValTraceMgr* vtm) const
return std::string(" = vector(") + vec + ")"; return std::string(" = vector(") + vec + ")";
} }
EventTrace::EventTrace(const ScriptFunc* _ev, double _nt, int event_num) : ev(_ev), nt(_nt) EventTrace::EventTrace(const ScriptFunc* _ev, double _nt, size_t event_num) : ev(_ev), nt(_nt)
{ {
auto ev_name = std::regex_replace(ev->Name(), std::regex(":"), "_"); auto ev_name = std::regex_replace(ev->Name(), std::regex(":"), "_");

View file

@ -308,7 +308,7 @@ public:
// Constructed in terms of the associated script function, "network // Constructed in terms of the associated script function, "network
// time" when the event occurred, and the position of this event // time" when the event occurred, and the position of this event
// within all of those being traced. // within all of those being traced.
EventTrace(const ScriptFunc* _ev, double _nt, int event_num); EventTrace(const ScriptFunc* _ev, double _nt, size_t event_num);
// Sets a string representation of the arguments (values) being // Sets a string representation of the arguments (values) being
// passed to the event. // passed to the event.