[libcxx-commits] [libcxx] 2d0aede - [libcxx] Change the type of __size to correspond
Brian Cain via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Nov 12 08:37:58 PST 2021
Author: Brian Cain
Date: 2021-11-12T08:30:38-08:00
New Revision: 2d0aede515e8d7ce141da9708c7e7129d6e24241
URL: https://github.com/llvm/llvm-project/commit/2d0aede515e8d7ce141da9708c7e7129d6e24241
DIFF: https://github.com/llvm/llvm-project/commit/2d0aede515e8d7ce141da9708c7e7129d6e24241.diff
LOG: [libcxx] Change the type of __size to correspond
__size was declared as unsigned which was compatible with
Added:
Modified:
libcxx/include/__format/formatter_integral.h
Removed:
################################################################################
diff --git a/libcxx/include/__format/formatter_integral.h b/libcxx/include/__format/formatter_integral.h
index 14b4e3a8273f6..6a232f21fa8e1 100644
--- a/libcxx/include/__format/formatter_integral.h
+++ b/libcxx/include/__format/formatter_integral.h
@@ -404,7 +404,7 @@ class _LIBCPP_TEMPLATE_VIS __formatter_integral : public _Parser {
__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);
}
More information about the libcxx-commits
mailing list