summaryrefslogtreecommitdiff
path: root/absl/strings/internal/cord_internal.cc
diff options
context:
space:
mode:
authorGravatar Leonhard Markert <curiousleo@users.noreply.github.com>2021-08-06 15:21:35 +0200
committerGravatar GitHub <noreply@github.com>2021-08-06 09:21:35 -0400
commitab01e0403a40813857a8e580d9cf1580ba0c4139 (patch)
tree4734a3fb6264535802536712c659ec638a52f5c9 /absl/strings/internal/cord_internal.cc
parentee0ebdae4a9e789b92f5abbe8573ddeeaead4864 (diff)
Simplifies the construction of the value returned by GenerateRealFromBits() (#994)
* GenerateRealFromBits: sign is already set If std::is_same<SignedTag, GeneratePositiveTag>::value then sign is already set to zero thanks to: uint_type sign = std::is_same<SignedTag, GenerateNegativeTag>::value ? (static_cast<uint_type>(1) << (kUintBits - 1)) : 0; // <- here So the conditional is unnecessary. * Update generate_real.h Remove extra parenthesis Co-authored-by: Derek Mauro <761129+derekmauro@users.noreply.github.com>
Diffstat (limited to 'absl/strings/internal/cord_internal.cc')
0 files changed, 0 insertions, 0 deletions