Fix declaration of size_t.

It should be an unsigned integer type.
This commit is contained in:
Matt Pharr
2012-06-21 14:40:24 -07:00
parent 0b7f9acc70
commit 3c10ddd46a

View File

@@ -114,7 +114,7 @@ lDeclareSizeAndPtrIntTypes(SymbolTable *symbolTable) {
symbolTable->AddType("ptrdiff_t", ptrIntType, SourcePos());
const Type *sizeType = (g->target.is32Bit || g->opt.force32BitAddressing) ?
AtomicType::VaryingInt32 : AtomicType::VaryingInt64;
AtomicType::VaryingUInt32 : AtomicType::VaryingUInt64;
sizeType = sizeType->GetAsUnboundVariabilityType();
symbolTable->AddType("size_t", sizeType, SourcePos());
}