diff options
author | Alexey Malov <malov.aleksey@gmail.com> | 2018-03-26 23:42:11 +0300 |
---|---|---|
committer | Feng Xiao <xfxyjwf@gmail.com> | 2018-03-26 13:42:11 -0700 |
commit | 379b7ff42a98a366816825d040c7c317f35422c4 (patch) | |
tree | 089ce9e0590dc252a97008e147723a48392f8df9 /src/google/protobuf/io | |
parent | ac673763f7acb7db0608d8a792db102fe6c926c3 (diff) |
Fixes MSVC compiler warning C4800 "Forcing value to bool 'true' or 'false'" (#4350)
Diffstat (limited to 'src/google/protobuf/io')
-rw-r--r-- | src/google/protobuf/io/coded_stream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/io/coded_stream.h b/src/google/protobuf/io/coded_stream.h index 9dad1c61..0f70ecde 100644 --- a/src/google/protobuf/io/coded_stream.h +++ b/src/google/protobuf/io/coded_stream.h @@ -851,7 +851,7 @@ class LIBPROTOBUF_EXPORT CodedOutputStream { } static bool IsDefaultSerializationDeterministic() { - return default_serialization_deterministic_.load(std::memory_order_relaxed); + return default_serialization_deterministic_.load(std::memory_order_relaxed) != 0; } private: |