Skip to content

Commit

Permalink
Use reinterpret_cast to cast __FlashStringHelper to const char*
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauszus committed Dec 27, 2013
1 parent dce9146 commit ad9f78d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/arduino/Print.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ size_t Print::write(const uint8_t *buffer, size_t size)

size_t Print::print(const __FlashStringHelper *ifsh)
{
const char PROGMEM *p = (const char PROGMEM *)ifsh;
const char *p = reinterpret_cast<const char *>(ifsh);
size_t n = 0;
while (1) {
unsigned char c = pgm_read_byte(p++);
Expand Down

0 comments on commit ad9f78d

Please sign in to comment.