X-Git-Url: http://ecere.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=compiler%2Fbootstrap%2Flibec%2Fbootstrap%2Fast.c;h=026a03d90725531fc7d4ee8c035fba6959751ca7;hb=5af8e766ef71a09f1f88c31bed2b66416b6d7fab;hp=b785aca462110b3365a545d095293ed0801992d4;hpb=4bf6c70a907961201da8a5f8db56b6e69092afee;p=sdk diff --git a/compiler/bootstrap/libec/bootstrap/ast.c b/compiler/bootstrap/libec/bootstrap/ast.c index b785aca..026a03d 100644 --- a/compiler/bootstrap/libec/bootstrap/ast.c +++ b/compiler/bootstrap/libec/bootstrap/ast.c @@ -876,6 +876,7 @@ unsigned int declaredWithStruct : 1; unsigned int typedByReference : 1; unsigned int casted : 1; unsigned int pointerAlignment : 1; +unsigned int isLong : 1; } __attribute__ ((gcc_struct)); struct TemplatedType * FindTemplateTypeParameter(struct Context * ctx, const char * name); @@ -4542,6 +4543,7 @@ if(isLong || (targetBits == 64 && targetPlatform != 1)) specType->kind = 4; else specType->kind = 3; +specType->isLong = 1; isLong = 1; } else if(spec->__anon1.specifier == FLOAT) @@ -4969,7 +4971,7 @@ if(exp) ProcessExpressionType(exp); ComputeExpression(exp); if(exp->type == 2) -type->bitFieldCount = strtoul(exp->__anon1.__anon1.constant, (((void *)0)), 0); +type->bitFieldCount = (unsigned int)strtoul(exp->__anon1.__anon1.constant, (((void *)0)), 0); } break; }