X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCmem.c;h=35b0d9e1f3bb4198bbc694b081484b8bd1a3c80a;hb=116a1bfc169e441ed10267f1b0fe8a2336b6dc78;hp=ddf5ce66bb7e202d10356bfb47f01cf28402a2ac;hpb=eb93c35b1ca7e48282e20bb8835bb779ce67dd83;p=fw%2Fsdcc diff --git a/src/SDCCmem.c b/src/SDCCmem.c index ddf5ce66..35b0d9e1 100644 --- a/src/SDCCmem.c +++ b/src/SDCCmem.c @@ -416,10 +416,10 @@ allocGlobal (symbol * sym) } /* if this is a bit variable and no storage class */ - if (SPEC_NOUN (sym->etype) == V_BIT - /*&& SPEC_SCLS (sym->etype) == S_BIT*/) + if (IS_SPEC(sym->type) && SPEC_NOUN (sym->type) == V_BIT) + /*&& SPEC_SCLS (sym->etype) == S_BIT*/ { - SPEC_OCLS (sym->etype) = bit; + SPEC_OCLS (sym->type) = bit; allocIntoSeg (sym); return; } @@ -663,10 +663,10 @@ allocLocal (symbol * sym) } /* if this is a bit variable and no storage class */ - if (SPEC_NOUN (sym->etype) == V_BIT) + if (IS_SPEC(sym->type) && SPEC_NOUN (sym->type) == V_BIT) { - SPEC_SCLS (sym->etype) = S_BIT; - SPEC_OCLS (sym->etype) = bit; + SPEC_SCLS (sym->type) = S_BIT; + SPEC_OCLS (sym->type) = bit; allocIntoSeg (sym); return; }