X-Git-Url: https://ecere.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=compiler%2Fbootstrap%2Flibec%2Fbootstrap%2Fpass15.c;h=76001716ed062b474d90d56ff0e8be59a9a92fe6;hb=52cc84415fa6becd514e09e369a29a6ebcc558b0;hp=dd544dc570be70d3631428f45b782e59c801d4bc;hpb=73faf15facff91e0e7e2f426dec2b71ca0b7529d;p=sdk diff --git a/compiler/bootstrap/libec/bootstrap/pass15.c b/compiler/bootstrap/libec/bootstrap/pass15.c index dd544dc..7600171 100644 --- a/compiler/bootstrap/libec/bootstrap/pass15.c +++ b/compiler/bootstrap/libec/bootstrap/pass15.c @@ -10190,14 +10190,6 @@ FreeType(exp->expType); break; } } -if(newExp->type == 8 && newExp->__anon1.member.memberType == 3) -{ -exp->type = 4; -exp->__anon1.op.op = '*'; -exp->__anon1.op.exp1 = (((void *)0)); -exp->__anon1.op.exp2 = MkExpCast(MkTypeName(MkListOne(MkSpecifierName("uint64")), MkDeclaratorPointer(MkPointer((((void *)0)), (((void *)0))), (((void *)0)))), MkExpBrackets(MkListOne(MkExpOp((((void *)0)), '&', newExp)))); -} -else { char typeString[1024]; struct Declarator * decl; @@ -10210,6 +10202,8 @@ exp->type = 11; exp->__anon1.cast.typeName = MkTypeName(specs, decl); exp->__anon1.cast.exp = MkExpBrackets(MkListOne(newExp)); exp->__anon1.cast.exp->needCast = 1; +exp->needTemplateCast = 2; +newExp->needTemplateCast = 2; } break; }