Skip to content

Commit

Permalink
Fix clang warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon committed Nov 15, 2021
1 parent 323b576 commit 4376aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ArduinoJson/Strings/String.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class String : public SafeBoolIdom<String> {

#if ARDUINOJSON_ENABLE_STD_STREAM
friend std::ostream& operator<<(std::ostream& lhs, const String& rhs) {
lhs.write(rhs.c_str(), rhs.size());
lhs.write(rhs.c_str(), static_cast<std::streamsize>(rhs.size()));
return lhs;
}
#endif
Expand Down

0 comments on commit 4376aea

Please sign in to comment.