Skip to content

Commit 5979f8d

Browse files
Remove unneeded casts in Print::write(const String&)
Now that Print::write(const char*) is also available, these casts are no longer needed.
1 parent 09015f7 commit 5979f8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/Print.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ size_t Print::print(const __FlashStringHelper *ifsh)
4646

4747
size_t Print::print(const String &s)
4848
{
49-
return write(reinterpret_cast<const uint8_t*>(s.c_str()), s.length());
49+
return write(s.c_str(), s.length());
5050
}
5151

5252
size_t Print::print(const char str[])

0 commit comments

Comments
 (0)