Allow "long unsigned" type
This commit is contained in:
parent
235cbbc227
commit
f2338f1d13
|
@ -767,8 +767,13 @@ Declaration* Parser::ParseBaseTypeDeclaration(uint64 flags, bool qualified, Decl
|
||||||
case TK_LONG:
|
case TK_LONG:
|
||||||
dec = new Declaration(mScanner->mLocation, DT_TYPE_INTEGER);
|
dec = new Declaration(mScanner->mLocation, DT_TYPE_INTEGER);
|
||||||
dec->mSize = 4;
|
dec->mSize = 4;
|
||||||
dec->mFlags = flags | DTF_DEFINED | DTF_SIGNED;
|
|
||||||
mScanner->NextToken();
|
mScanner->NextToken();
|
||||||
|
if (ConsumeTokenIf(TK_UNSIGNED))
|
||||||
|
dec->mFlags = flags | DTF_DEFINED;
|
||||||
|
else if (ConsumeTokenIf(TK_SIGNED))
|
||||||
|
dec->mFlags = flags | DTF_DEFINED | DTF_SIGNED;
|
||||||
|
else
|
||||||
|
dec->mFlags = flags | DTF_DEFINED | DTF_SIGNED;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TK_SHORT:
|
case TK_SHORT:
|
||||||
|
|
Loading…
Reference in New Issue