[all-commits] [llvm/llvm-project] 9f5f08: [libcxx] Fix the type in __estimate_column_width
stefanp-ibm via All-commits
all-commits at lists.llvm.org
Fri Feb 25 07:05:19 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9f5f08476e8979046ad3a13865d984c428eae442
https://github.com/llvm/llvm-project/commit/9f5f08476e8979046ad3a13865d984c428eae442
Author: Stefan Pintilie <stefanp at ca.ibm.com>
Date: 2022-02-25 (Fri, 25 Feb 2022)
Changed paths:
M libcxx/include/__format/parser_std_format_spec.h
M libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_string_unicode.pass.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list