From d755fa6fbaf847929e99440fdc38fb93f04db53b Mon Sep 17 00:00:00 2001 From: Julien Voisin Date: Thu, 5 Jan 2023 21:46:26 +0100 Subject: [PATCH] Make api_require's nodes const (#1296) --- src/api/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/system.c b/src/api/system.c index 70d02156..5e55acce 100644 --- a/src/api/system.c +++ b/src/api/system.c @@ -916,7 +916,7 @@ typedef struct lua_function_node { #define P(FUNC) { "lua_" #FUNC, (fptr)(lua_##FUNC) } #define U(FUNC) { "luaL_" #FUNC, (fptr)(luaL_##FUNC) } static void* api_require(const char* symbol) { - static lua_function_node nodes[] = { + static const lua_function_node nodes[] = { P(atpanic), P(checkstack), P(close), P(concat), P(copy), P(createtable), P(dump), P(error), P(gc), P(getallocf), P(getfield),