We faced the assert of too many declarations for serialized lookup for a very huge generated C++ target. We
think moving the type to uint32_t helps us. As I am not sure in the fix, please validate the correctness.
I don't have commit rights. Email: danilak@google.com. Name: Danila Kutenin.