aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-11-02 08:06:27 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2026-11-02 08:06:27 +0100
commitf581875ce002e4d60fd60c070ffc91cfbf83655f (patch)
tree7d4471384856972dd1d24a6b465148e2edab29f9 /src
parenta998b3b624ec97f162a1926e0809e43c52f01730 (diff)
downloadprc-f581875ce002e4d60fd60c070ffc91cfbf83655f.tar.gz
sym.c: Const-qualify table
Diffstat (limited to 'src')
-rw-r--r--src/prc1/sym.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prc1/sym.c b/src/prc1/sym.c
index e63e680..cc8c129 100644
--- a/src/prc1/sym.c
+++ b/src/prc1/sym.c
@@ -331,7 +331,7 @@ static int endsym(const struct lex *l, struct prv *p)
static int invalid(const struct tk *tk, const struct type *a,
const struct type *b)
{
- static int t[BUILTIN + 1][BUILTIN + 1] =
+ static const int t[BUILTIN + 1][BUILTIN + 1] =
{
/* U S C P T PTR ARY BUILTIN */
/* U */ {1, 0, 0, 0, 0, 0, 0, 0},