Skip to content

Commit bc79a99

Browse files
committed
Merge pull request #110 from WizenedEE/master
Add const qualifier in F() macro. http://code.google.com/p/arduino/issues/detail?id=866
2 parents 36b5d52 + e223f8e commit bc79a99

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)