Skip to content

Commit

Permalink
Fix issue #120
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon committed Sep 19, 2015
1 parent 4967e38 commit 36a0ccd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/ArduinoJson/Internals/DynamicStringBuilder.hpp
Expand Up @@ -18,7 +18,8 @@ class DynamicStringBuilder : public Print {
DynamicStringBuilder(String &str) : _str(str) {}

virtual size_t write(uint8_t c) {
_str += c;
// Need to cast to char, otherwise String will print a number (issue #120)
_str += static_cast<char>(c);
return 1;
}

Expand Down

0 comments on commit 36a0ccd

Please sign in to comment.