File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments