Defect Report #204

Submitter: Raymond Mak (Canada C Working Group)
Submission Date: 15-Sept-1999
Reference Document: WG14 N893
Source: Canada C Working Group
Version: 1.2
Date: 2000/04/18 02:13:53
Question
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.
Committee Proposed Technical Corrigendum:
Add to the end of 7.17.0:
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