diff --git a/module.cpp b/module.cpp index 97f6b003..e00be0cc 100644 --- a/module.cpp +++ b/module.cpp @@ -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()); }