From 1e42633d90fae3f0641c99c528fc3bcec1d48e51 Mon Sep 17 00:00:00 2001 From: Stanislav Gromov Date: Tue, 4 May 2021 22:22:51 +0700 Subject: [PATCH] Fix build errors on Linux and OS X --- source/compiler/sc3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/compiler/sc3.c b/source/compiler/sc3.c index 11d7c03..f13834d 100644 --- a/source/compiler/sc3.c +++ b/source/compiler/sc3.c @@ -650,11 +650,11 @@ static void plnge2(void (*oper)(void), } else { if (lval1->tag==BOOLTAG && lval2->tag==BOOLTAG && oper!=ob_or && oper!=ob_xor && oper!=ob_and && oper!=ob_eq && oper!=ob_ne) { - static const void (*opers[])(void) = { + static void (*const opers[])(void) = { os_mult,os_div,os_mod,ob_add,ob_sub,ob_sal, os_sar,ou_sar,os_le,os_ge,os_lt,os_gt }; - static const char* opnames[] = { + static const char *opnames[] = { "*","/","%","+","-","<<", ">>",">>>","<=",">=","<",">" };