These printf()s fail to compile on hexagon.
Details
Details
- Reviewers
STL_MSFT • Quuxplusone Mordante - Group Reviewers
Restricted Project - Commits
- rG9bf6e3e97e3e: [libcxx] Make test case fmt specifiers more portable
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
The microsoft/STL repo follows a convention of always avoiding functional-style C-semantics casts like size_t(value), so these should be static_cast<size_t>(value). (The rationale is that size_t(value) is willing to reinterpret pointer values and is difficult to search for.)
Separately, I am not a huge fan of the size_t type here - it introduces machine-bitness-variation that's unrelated to these values (which are always 32-bit). That said, there's no danger and minimal risk of confusion, and there aren't great alternatives, so I'll live with it.
Thanks for fixing these warnings!
Comment Actions
Please upload the next version with @STL_MSFT's comments addressed with the complete context. Having the complete context makes reviewing easier.