Skip to content

Commit

Permalink
Fix old style cast warning
Browse files Browse the repository at this point in the history
Fixes #2556
  • Loading branch information
keith committed Feb 28, 2024
1 parent ba18304 commit b95554c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/include/opentelemetry/trace/span_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class SpanContext final
SpanContext(bool sampled_flag, bool is_remote) noexcept
: trace_id_(),
span_id_(),
trace_flags_(trace::TraceFlags((uint8_t)sampled_flag)),
trace_flags_(trace::TraceFlags(static_cast<uint8_t>(sampled_flag))),
is_remote_(is_remote),
trace_state_(TraceState::GetDefault())
{}
Expand Down

0 comments on commit b95554c

Please sign in to comment.