SIGN IN SIGN UP

Protocol Buffers - Google's data interchange format

0 0 35 C++

Fix sign compare warnings (#26131)

`generated_message_tctable_impl.h` gets included in user code and results in huge warning output as following:

```
2>In file included from ..\source\CppClient\client\protobuf/AccountDataEnd.pb.h:21:
2>In file included from C:\work-pps\twsapi-git\ext\protobuf\src\google/protobuf/io/coded_stream.h:111:
2>In file included from C:\work-pps\twsapi-git\ext\abseil-cpp\absl/log/absl_check.h:38:
2>In file included from C:\work-pps\twsapi-git\ext\abseil-cpp\absl/log/internal/check_impl.h:21:
2>C:\work-pps\twsapi-git\ext\abseil-cpp\absl/log/internal/check_op.h(503,43): warning : comparison of integers of different signs: 'const unsigned int' and 'const int' [-Wsign-compare]
2>C:\work-pps\twsapi-git\ext\abseil-cpp\absl/log/internal/check_op.h(492,33): message : expanded from macro 'ABSL_LOG_INTERNAL_CHECK_OP_IMPL'
2>C:\work-pps\twsapi-git\ext\abseil-cpp\absl/base/optimization.h(190,58): message : expanded from macro 'ABSL_PREDICT_TRUE'
2>C:\work-pps\twsapi-git\ext\protobuf\src\google/protobuf/generated_message_tctable_impl.h(895,7): message : in instantiation of function template specialization 'absl::log_internal::Check_NEImpl<unsigned int, int>' requested here
2>C:\work-pps\twsapi-git\ext\abseil-cpp\absl/log/absl_check.h(76,3): message : expanded from macro 'ABSL_DCHECK_NE'
2>C:\work-pps\twsapi-git\ext\abseil-cpp\absl/log/internal/check_impl.h(76,3): message : expanded from macro 'ABSL_LOG_INTERNAL_DCHECK_NE_IMPL'
2>C:\work-pps\twsapi-git\ext\abseil-cpp\absl/log/internal/check_impl.h(51,3): message : expanded from macro 'ABSL_LOG_INTERNAL_CHECK_NE_IMPL'
2>C:\work-pps\twsapi-git\ext\abseil-cpp\absl/log/internal/check_op.h(69,51): message : expanded from macro 'ABSL_LOG_INTERNAL_CHECK_OP'
```

Closes #26131

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/26131 from pps83:main-sign-compare 97152db43c0fbb02ed2b4d68e17737bf62bd191e
PiperOrigin-RevId: 911542610
P
Pavel P committed
3b402b46ead91e95cc2576dd093ff740072281ce
Parent: 8a8f316
Committed by Copybara-Service <copybara-worker@google.com> on 5/6/2026, 9:15:31 PM