Skip to content

Commit e223f8e

Browse files
committed
Fix issue 866
Fix issue 866 by adding a const qualifier to what the F macro casts to.
1 parent 36b5d52 commit e223f8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hardware/arduino/cores/arduino/WString.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
// -std=c++0x
3636

3737
class __FlashStringHelper;
38-
#define F(string_literal) (reinterpret_cast<__FlashStringHelper *>(PSTR(string_literal)))
38+
#define F(string_literal) (reinterpret_cast<const __FlashStringHelper *>(PSTR(string_literal)))
3939

4040
// An inherited class for holding the result of a concatenation. These
4141
// result objects are assumed to be writable by subsequent concatenations.

0 commit comments

Comments
 (0)