Skip to content

Commit 959e6a9

Browse files
committed
Merge branch 'cast' of github.com:Lauszus/Arduino into Lauszus-cast
Conflicts: hardware/arduino/avr/cores/arduino/Print.cpp
2 parents 54c429a + 4ed59c2 commit 959e6a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino/avr/cores/arduino/Print.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ size_t Print::write(const uint8_t *buffer, size_t size)
4141

4242
size_t Print::print(const __FlashStringHelper *ifsh)
4343
{
44-
PGM_P p = (PGM_P)ifsh;
44+
PGM_P p = reinterpret_cast<PGM_P>(ifsh);
4545
size_t n = 0;
4646
while (1) {
4747
unsigned char c = pgm_read_byte(p++);

0 commit comments

Comments
 (0)