From c40ab91c41bc9e2ef99600baf8c47dbe191aeb0c Mon Sep 17 00:00:00 2001 From: Adam Dunlap Date: Thu, 16 Aug 2012 20:59:33 -0700 Subject: [PATCH] Fix issue 866 Fix issue 866 by adding a const qualifier to what the F macro casts to. --- cores/arduino/WString.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(PSTR(string_literal))) // An inherited class for holding the result of a concatenation. These // result objects are assumed to be writable by subsequent concatenations.