diff --git a/examples/lua_basic/main.c b/examples/lua_basic/main.c index 5d71fbca9fed7..ba1ba378259d3 100644 --- a/examples/lua_basic/main.c +++ b/examples/lua_basic/main.c @@ -27,7 +27,11 @@ #include "blob/main.lua.h" +#if (__SIZEOF_POINTER__ == 8) +#define LUA_MEM_SIZE (22000) +#else #define LUA_MEM_SIZE (11000) +#endif static char lua_mem[LUA_MEM_SIZE] __attribute__ ((aligned(__BIGGEST_ALIGNMENT__))); int lua_run_script(const uint8_t *buffer, size_t buffer_len) diff --git a/tests/pkg/lua_loader/main.c b/tests/pkg/lua_loader/main.c index 41f51e6264f1d..889546bcc44f2 100644 --- a/tests/pkg/lua_loader/main.c +++ b/tests/pkg/lua_loader/main.c @@ -69,7 +69,11 @@ const size_t lua_riot_builtin_lua_table_len = const size_t lua_riot_builtin_c_table_len = ARRAY_SIZE(_lua_riot_builtin_c_table); +#if (__SIZEOF_POINTER__ == 8) +#define LUA_MEM_SIZE (22000) +#else #define LUA_MEM_SIZE (11000) +#endif static char lua_mem[LUA_MEM_SIZE] __attribute__ ((aligned(__BIGGEST_ALIGNMENT__))); #define LINEBUF_SZ (32)