Skip to content

Commit

Permalink
Make api_require's nodes const (lite-xl#1296)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoisin authored and takase1121 committed Jan 16, 2023
1 parent 4d6e80f commit e58cc1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit e58cc1c

Please sign in to comment.