Skip to content

Commit

Permalink
Avoid implicit conversion to double
Browse files Browse the repository at this point in the history
  • Loading branch information
cschreib authored May 2, 2024
1 parent ed4746d commit 03b21d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snitch_reporter_teamcity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ constexpr std::size_t max_duration_length = 32;
# if SNITCH_WITH_TIMINGS
small_string<max_duration_length> make_duration(float duration) noexcept {
small_string<max_duration_length> string;
append_or_truncate(string, static_cast<std::size_t>(duration * 1e6));
append_or_truncate(string, static_cast<std::size_t>(duration * 1e6f));
return string;
}
# endif
Expand Down

0 comments on commit 03b21d9

Please sign in to comment.