Skip to content

Commit

Permalink
Merge branch 'main' into f-support-signal-level-protocol-autoexport
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasgouveia authored Jul 1, 2024
2 parents 3057a7b + 074bc28 commit afec6af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions samplers/probability/consistent/tracestate.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ func parseNumber(key string, input string, maximum uint8) (uint8, error) {
if value > uint64(maximum) {
return maximum + 1, parseError(key, strconv.ErrRange)
}
// `value` is strictly less then the uint8 maximum. This cast is safe.
return uint8(value), nil
}

Expand Down

0 comments on commit afec6af

Please sign in to comment.