[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Proposal: All constants should have UL suffix
All numeric constants in the specification section "A. Manifest Constants" should have the suffix 'UL' on them. This allows the code like this to return the correct result: sizeof(CKO_DATA) Among other things, it also allows the constants to be passed correctly to C varargs functions. Since all document edits for this would be tedious. I'll just give a few examples: - #define CKU_SO 0 + #define CKU_SO 0UL and - #define CKA_CLASS 0x00000000 + #define CKA_CLASS 0x00000000UL Above applies to every constant in the specification section "A. Manifest Constants" as well obviously as the reference headers. Cheers, Stef
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]