diff options
author | Adam Dunlap <dunlapadam@gmail.com> | 2012-08-16 20:59:33 -0700 |
---|---|---|
committer | Adam Dunlap <dunlapadam@gmail.com> | 2012-08-16 20:59:33 -0700 |
commit | c40ab91c41bc9e2ef99600baf8c47dbe191aeb0c (patch) | |
tree | 5497feabd3e08566b6175fdc1028a2526f760db3 /cores/arduino/WString.h | |
parent | ef7a66b84596267e91ee98a39d653ada60be2175 (diff) |
Fix issue 866
Fix issue 866 by adding a const qualifier to what the F macro casts to.
Diffstat (limited to 'cores/arduino/WString.h')
-rw-r--r-- | cores/arduino/WString.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/WString.h b/cores/arduino/WString.h index d76d2a3..947325e 100644 --- a/cores/arduino/WString.h +++ b/cores/arduino/WString.h @@ -35,7 +35,7 @@ // -std=c++0x class __FlashStringHelper; -#define F(string_literal) (reinterpret_cast<__FlashStringHelper *>(PSTR(string_literal))) +#define F(string_literal) (reinterpret_cast<const __FlashStringHelper *>(PSTR(string_literal))) // An inherited class for holding the result of a concatenation. These // result objects are assumed to be writable by subsequent concatenations. |