Types: make SilcUInt32 an unsigned int in most cases.
authorKp <kp@valhallalegends.com>
Sun, 1 Jun 2008 04:57:51 +0000 (23:57 -0500)
committerKp <kp@valhallalegends.com>
Mon, 1 Sep 2008 19:48:40 +0000 (14:48 -0500)
commit41bac7b295aab8a09a1add8ca02db472fcd31184
treedd728434c40eb27fc472609e464d61889d24d9b6
parent9606632e594c94958116127a39e4411888c4a30b
Types: make SilcUInt32 an unsigned int in most cases.

On typical 32-bit systems, both unsigned int and unsigned long are 32
bits wide.  However, they have different format specifiers, so they
cannot be used interchangeably.  On typical 64-bit systems, unsigned int
is 32 bits and unsigned long is 64 bits.  To allow for a more consistent
format string, reorder the type size checks so that SilcUInt32 is an
unsigned int on both 32 bit and 64 bit systems.
lib/silcutil/silctypes.h