Next: 9 Exceptions  Up: 8.4 Object Declarations and Definitions  Previous: High Integrity CPP Guideline 8.4.12  Contents

High Integrity CPP Guideline 8.4.13   Prefer to use signed numeric values, not unsigned.
(QA C++  3084)

Justification

Conversions between signed and unsigned types can lead to surprising results.


HICPP VERSION 2.4  http://www.codingstandard.com   Copyright: © 2007 THE PROGRAMMING RESEARCH GROUP