X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCsymt.c;h=72f323ab3437b7d0de6f0fec90d132b1d5ffc86b;hb=6c78bc0cba530b6d01daaedcbb327a1f06013c27;hp=c7623d458dd7e37206ce3f4a01c85522535bd461;hpb=b880df34d5377ceee7a8e9465e73aee076fa8d49;p=fw%2Fsdcc diff --git a/src/SDCCsymt.c b/src/SDCCsymt.c index c7623d45..72f323ab 100644 --- a/src/SDCCsymt.c +++ b/src/SDCCsymt.c @@ -2324,7 +2324,7 @@ compareTypeExact (sym_link * dest, sym_link * src, int level) srcScls = SPEC_SCLS (src); /* Compensate for const to const code change in checkSClass() */ - if (!level & port->mem.code_ro && SPEC_CONST (dest)) + if (((!level) & port->mem.code_ro) && SPEC_CONST (dest)) { if (srcScls == S_CODE && destScls == S_FIXED) destScls = S_CODE;