We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f4f21c commit 5c92a02Copy full SHA for 5c92a02
cores/esp32/WString.h
@@ -34,8 +34,8 @@
34
// A pure abstract class forward used as a means to proide a unique pointer type
35
// but really is never defined.
36
class __FlashStringHelper;
37
-#define FPSTR(pstr_pointer) (pstr_pointer)
38
-#define F(string_literal) (string_literal)
+#define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
+#define F(string_literal) (FPSTR(PSTR(string_literal)))
39
40
// An inherited class for holding the result of a concatenation. These
41
// result objects are assumed to be writable by subsequent concatenations.
0 commit comments