================ @@ -777,7 +779,7 @@ template <> struct MappingTraits<FormatStyle::SpacesInLineComment> { IO.mapOptional("Maximum", signedMaximum); Space.Maximum = static_cast<unsigned>(signedMaximum); - if (Space.Maximum != -1u) + if (Space.Maximum < UINT_MAX) ---------------- tex3d wrote:
Why `UINT_MAX` here instead of `std::numeric_limits<unsigned>::max()`? And why change the comparison from `!=` to `<` (even though they would be equivalent)? https://github.com/llvm/llvm-project/pull/147623 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits