diff options
author | Guy Harris <guy@alum.mit.edu> | 2008-04-08 17:48:04 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2008-04-08 17:48:04 +0000 |
commit | 8beb192d3285ed5fcebeea3815a5e0dc307e5a7e (patch) | |
tree | da178f42da492aed870ac53baeffaf7e885f2ae7 /asn1/x2ap/X2AP-Containers.asn | |
parent | 1c373ca2ac4b277a4f176dd4873f73e0d8dc7dac (diff) |
The integral type with which an enumerated type is equivalent is,
according to the ANSI C standard, implementation-defined; it could be
unsigned, in which case checking whether it's < 0 will cause a compiler
warning.
Casting a signed enum to unsigned will turn negative values into Really
Big Positive Values, so casting to unsigned and comparing against the
maximum value will catch values with the sign bit set regardless of
whether enums are signed or unsigned.
svn path=/trunk/; revision=24850
Diffstat (limited to 'asn1/x2ap/X2AP-Containers.asn')
0 files changed, 0 insertions, 0 deletions