We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 98777e8 + 5d361f5 commit ffddfc8Copy full SHA for ffddfc8
hardware/arduino/avr/cores/arduino/Print.cpp
@@ -41,7 +41,7 @@ size_t Print::write(const uint8_t *buffer, size_t size)
41
42
size_t Print::print(const __FlashStringHelper *ifsh)
43
{
44
- PGM_P p = (PGM_P)ifsh;
+ PGM_P p = reinterpret_cast<PGM_P>(ifsh);
45
size_t n = 0;
46
while (1) {
47
unsigned char c = pgm_read_byte(p++);
0 commit comments