[libcxx-commits] [PATCH] D113597: [libcxx] Change the type of __size to match __width

Brian Cain via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Nov 11 11:53:41 PST 2021


androm3da updated this revision to Diff 386616.
androm3da retitled this revision from "[libcxx] Update width adjustment for __format_unsigned_integral" to "[libcxx] Change the type of __size to match __width".
androm3da edited the summary of this revision.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113597/new/

https://reviews.llvm.org/D113597

Files:
  libcxx/include/__format/formatter_integral.h


Index: libcxx/include/__format/formatter_integral.h
===================================================================
--- libcxx/include/__format/formatter_integral.h
+++ libcxx/include/__format/formatter_integral.h
@@ -404,7 +404,7 @@
       __out_it = _VSTD::copy(__begin, __first, _VSTD::move(__out_it));
       this->__alignment = _Flags::_Alignment::__right;
       this->__fill = _CharT('0');
-      unsigned __size = __first - __begin;
+      uint32_t __size = __first - __begin;
       this->__width -= _VSTD::min(__size, this->__width);
     }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113597.386616.patch
Type: text/x-patch
Size: 557 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211111/87765c26/attachment.bin>


More information about the libcxx-commits mailing list