Defect Report #204

Previous Defect Report < - > Next Defect Report


Submitter: Raymond Mak (Canada C Working Group)
Submission Date: 1999-09-15
Source: Canada C Working Group
Reference Document: ISO/IEC WG14 N893
Version: 1.3
Date: 2000-11-02 13:45:31
Subject: size_t and ptrdiff_t as a long long type

Summary
size_t and ptrdiff_t can now be a long long type, which is not necessary for hardwares that do not support 64-bit addressing. Implementors should be encouraged to choose a type for these two that minimizes compatibility problems to existing (32-bit) code.

Suggested Correction
In 7.17 at the end of p2, add the following:

Recommended Practice

The long long type should be used only if no other integer types can represent the value range required by the implementation.


Technical Corrigendum
Add to the end of 7.17:

Recommended Practice

[#4] The types used for size_t and ptrdiff_t should not have an integer conversion rank greater than that of signed long unless the implementation supports objects large enough to make this necessary.


Previous Defect Report < - > Next Defect Report