Merge pull request #9907 from acozzette/sync-stage

Integrate from Piper for C++, Java, and Python
pull/9910/head
Adam Cozzette 3 years ago committed by GitHub
commit c03eb88a87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      src/google/protobuf/parse_context.h
  2. 1
      src/google/protobuf/wire_format_lite.h

@ -630,7 +630,7 @@ const char* ReadTagInlined(const char* ptr, uint32_t* out) {
*out = 0;
return nullptr;
}
*out = RotateLeft(res, 28);
*out = static_cast<uint32_t>(RotateLeft(res, 28));
#if defined(__GNUC__)
// Note: this asm statement prevents the compiler from
// trying to share the "return ptr + constant" among all
@ -639,16 +639,16 @@ const char* ReadTagInlined(const char* ptr, uint32_t* out) {
#endif
return ptr + 5;
}
*out = RotateLeft(res, 21);
*out = static_cast<uint32_t>(RotateLeft(res, 21));
return ptr + 4;
}
*out = RotateLeft(res, 14);
*out = static_cast<uint32_t>(RotateLeft(res, 14));
return ptr + 3;
}
*out = RotateLeft(res, 7);
*out = static_cast<uint32_t>(RotateLeft(res, 7));
return ptr + 2;
}
*out = res;
*out = static_cast<uint32_t>(res);
return ptr + 1;
}

@ -41,6 +41,7 @@
#define GOOGLE_PROTOBUF_WIRE_FORMAT_LITE_H__
#include <limits>
#include <string>
#include <google/protobuf/stubs/common.h>

Loading…
Cancel
Save