DescriptionAdd InRangeCast<> and its test.
InRangeCast<> is similar to base::saturated_cast<>, but it allows the
caller to specify the value to be returned in the event that the source
value can’t be converted to the destination data type without data loss.
TEST=util_test InRangeCast
R=rsesek@chromium.org
Committed: https://chromium.googlesource.com/crashpad/crashpad/+/6997418cd4af
Patch Set 1 #Patch Set 2 : Switch from [u]ll constants to correct [U]INT64_C() constants #
Total comments: 2
Patch Set 3 : Rebase #
Messages
Total messages: 4 (0 generated)
|