| Index: third_party/protobuf/src/google/protobuf/io/coded_stream.h
|
| diff --git a/third_party/protobuf/src/google/protobuf/io/coded_stream.h b/third_party/protobuf/src/google/protobuf/io/coded_stream.h
|
| index 2da096c5c8d19204117edee08cf6326fab8c93b7..f211c69ad399e7905ef1646835e4bacc7a667adc 100644
|
| --- a/third_party/protobuf/src/google/protobuf/io/coded_stream.h
|
| +++ b/third_party/protobuf/src/google/protobuf/io/coded_stream.h
|
| @@ -117,7 +117,7 @@
|
| #if !defined(PROTOBUF_DISABLE_LITTLE_ENDIAN_OPT_FOR_TEST)
|
| #define PROTOBUF_LITTLE_ENDIAN 1
|
| #endif
|
| - #if _MSC_VER >= 1300
|
| + #if _MSC_VER >= 1300 && !defined(__INTEL_COMPILER)
|
| // If MSVC has "/RTCc" set, it will complain about truncating casts at
|
| // runtime. This file contains some intentional truncating casts.
|
| #pragma runtime_checks("c", off)
|
| @@ -1135,7 +1135,7 @@ inline void CodedOutputStream::WriteVarint32(uint32 value) {
|
| // this write won't cross the end, so we can skip the checks.
|
| uint8* target = buffer_;
|
| uint8* end = WriteVarint32ToArray(value, target);
|
| - int size = end - target;
|
| + int size = static_cast<int>(end - target);
|
| Advance(size);
|
| } else {
|
| WriteVarint32SlowPath(value);
|
| @@ -1285,9 +1285,9 @@ inline bool CodedInputStream::IsFlat() const {
|
| } // namespace protobuf
|
|
|
|
|
| -#if defined(_MSC_VER) && _MSC_VER >= 1300
|
| +#if _MSC_VER >= 1300 && !defined(__INTEL_COMPILER)
|
| #pragma runtime_checks("c", restore)
|
| -#endif // _MSC_VER
|
| +#endif // _MSC_VER && !defined(__INTEL_COMPILER)
|
|
|
| } // namespace google
|
| #endif // GOOGLE_PROTOBUF_IO_CODED_STREAM_H__
|
|
|