Skip to content

Commit 4fc9e9f

Browse files
committed
Fix LOAD_FSTR_ARRAY macro, mis-placed )
1 parent 5d12821 commit 4fc9e9f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/include/FlashString/Array.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
* printf("arr[0] = %f, %u elements, buffer is %u bytes\n", arr[0], fsArray.length(), sizeof(arr));
8383
*/
8484
#define LOAD_FSTR_ARRAY(name, array) \
85-
decltype(array)[0] name[(array).size()] FSTR_ALIGNED; \
85+
decltype(array[0]) name[(array).size()] FSTR_ALIGNED; \
8686
memcpy_aligned(name, (array).data(), (array).size());
8787

8888
/**

src/include/FlashString/String.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ typedef const __FlashStringHelper* flash_string_t;
111111
*
112112
*/
113113
#define LOAD_FSTR(name, fstr) \
114-
char name[(fstr).size()] __attribute__((aligned(4))); \
114+
char name[(fstr).size()] FSTR_ALIGNED; \
115115
memcpy_aligned(name, (fstr).data(), (fstr).length()); \
116116
name[(fstr).length()] = '\0';
117117

0 commit comments

Comments
 (0)