Skip to content

Commit 6d99aee

Browse files
CEL Dev Teamcopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 997643062
1 parent a15d985 commit 6d99aee

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎extensions/formatting.cc‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ absl::StatusOr<absl::string_view> FormatBinary(
296296
sign_bit = true;
297297
// Negating min int is undefined behavior, so we need to use unsigned
298298
// arithmetic.
299-
using unsigned_type = std::make_unsigned<decltype(tmp)>::type;
299+
using unsigned_type = std::make_unsigned_t<decltype(tmp)>;
300300
unsigned_value = -static_cast<unsigned_type>(tmp);
301301
} else {
302302
unsigned_value = tmp;
@@ -354,7 +354,7 @@ absl::StatusOr<absl::string_view> FormatHex(
354354
if (tmp < 0) {
355355
// Negating min int is undefined behavior, so we need to use unsigned
356356
// arithmetic.
357-
using unsigned_type = std::make_unsigned<decltype(tmp)>::type;
357+
using unsigned_type = std::make_unsigned_t<decltype(tmp)>;
358358
scratch = absl::StrFormat("-%x", -static_cast<unsigned_type>(tmp));
359359
} else {
360360
scratch = absl::StrFormat("%x", tmp);
@@ -386,7 +386,7 @@ absl::StatusOr<absl::string_view> FormatOctal(
386386
if (tmp < 0) {
387387
// Negating min int is undefined behavior, so we need to use unsigned
388388
// arithmetic.
389-
using unsigned_type = std::make_unsigned<decltype(tmp)>::type;
389+
using unsigned_type = std::make_unsigned_t<decltype(tmp)>;
390390
scratch = absl::StrFormat("-%o", -static_cast<unsigned_type>(tmp));
391391
} else {
392392
scratch = absl::StrFormat("%o", tmp);

0 commit comments

Comments
 (0)