[libcxx] Fix the type in __estimate_column_width
authorStefan Pintilie <stefanp@ca.ibm.com>
Fri, 25 Feb 2022 14:48:58 +0000 (08:48 -0600)
committerStefan Pintilie <stefanp@ca.ibm.com>
Fri, 25 Feb 2022 15:04:58 +0000 (09:04 -0600)
commit9f5f08476e8979046ad3a13865d984c428eae442
tree5699c16dea8e20d965cb4f232cce4893273ddf88
parentf23e5c03222ad7f6dc65c59a0f133f91decb96f3
[libcxx] Fix the type in __estimate_column_width

It seems that we are using wchar_t in __estimate_column_width and assume that
it is a 32 bit type. However, on AIX 32 the size of wchar_t is only 16 bits.

Changed wchar_t to uint32_t since the variable is being passed to a function
that uses uint32_t anyway.

Reviewed By: hubert.reinterpretcast, daltenty, Mordante, #libc, Quuxplusone

Differential Revision: https://reviews.llvm.org/D119770
libcxx/include/__format/parser_std_format_spec.h
libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_string_unicode.pass.cpp