We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 54c429a + 4ed59c2 commit 959e6a9Copy full SHA for 959e6a9
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