From: Kurt Zeilenga Date: Wed, 3 May 2000 18:55:27 +0000 (+0000) Subject: Use (unsigned char) -1 instead of 0xffU. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~3049 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0b3a6786fe6689e62dc28ba83b1b8cc4e0a8c300;p=openldap Use (unsigned char) -1 instead of 0xffU. --- diff --git a/libraries/liblber/encode.c b/libraries/liblber/encode.c index 512ab90603..43eb9bdfa4 100644 --- a/libraries/liblber/encode.c +++ b/libraries/liblber/encode.c @@ -415,8 +415,8 @@ ber_put_boolean( ber_tag_t tag ) { ber_len_t taglen; - unsigned char trueval = 0xFFU; - unsigned char falseval = 0x00U; + unsigned char trueval = (unsigned char) -1; + unsigned char falseval = 0; assert( ber != NULL ); assert( BER_VALID( ber ) );