protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

MSVS 2015 - stubs/common.h trivial warning at default warning level

Open mintyc opened this issue 11 years ago • 1 comments

So close to no warnings at default level in user code using the lib in C++. Not talking about building the lib. (beta-1 / head)

src/google/protobuf/stubs/common.h

line 149: Add static_cast to avoid warning

inline bool IsStructurallyValidUTF8(const std::string& str) {
  return IsStructurallyValidUTF8(str.data(), static_cast<int>(str.length()));
}

mintyc avatar Oct 08 '15 07:10 mintyc

Fixed now.

xfxyjwf avatar Jan 21 '16 02:01 xfxyjwf