From f75318cd8cd3b1e8eedbfad67142ce0b86e4d792 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Tue, 26 Jan 2021 12:10:04 +0700 Subject: [PATCH] Move `n_mask_array` to read-only storage. (#300) --- src/xc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/xc.c b/src/xc.c index 0cf536c..cd48fbe 100644 --- a/src/xc.c +++ b/src/xc.c @@ -175,8 +175,10 @@ int dbgflag = 0; int extended_frame; /*indicates if soft stack overflow */ -int n_mask_array[16] = {1, 3, 7, 0xf, 0x1f, 0x3f, 0x7f, 0xff, - 0x1ff, 0x3ff, 0x7ff, 0xfff, 0x1fff, 0x3fff, 0x7fff, 0xffff}; +static const int n_mask_array[16] = { + 1, 3, 7, 0xf, 0x1f, 0x3f, 0x7f, 0xff, + 0x1ff, 0x3ff, 0x7ff, 0xfff, 0x1fff, 0x3fff, 0x7fff, 0xffff +}; extern int TIMER_INTERVAL;