Skip to content

Commit

Permalink
update cast to modern style
Browse files Browse the repository at this point in the history
  • Loading branch information
marioprats committed Mar 24, 2023
1 parent 9046167 commit 0e1b93d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resource/logging_macros.h.em
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ typedef bool (* RclLogFilter)();
* A macro initializing and checking the `throttle` condition.
*/
#define RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration) { \
static rcutils_duration_value_t __rcutils_logging_duration = RCUTILS_MS_TO_NS((rcutils_duration_value_t)duration); \
static rcutils_duration_value_t __rcutils_logging_duration = RCUTILS_MS_TO_NS(static_cast<rcutils_duration_value_t>(duration)); \
static rcutils_time_point_value_t __rcutils_logging_last_logged = 0; \
rcutils_time_point_value_t __rcutils_logging_now = 0; \
bool __rcutils_logging_condition = true; \
Expand Down

0 comments on commit 0e1b93d

Please sign in to comment.