]> git.sur5r.net Git - openldap/commitdiff
Use (unsigned char) -1 instead of 0xffU.
authorKurt Zeilenga <kurt@openldap.org>
Wed, 3 May 2000 18:55:27 +0000 (18:55 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 3 May 2000 18:55:27 +0000 (18:55 +0000)
libraries/liblber/encode.c

index 512ab906033ecf5091922afdb561549a533160b1..43eb9bdfa4987e957b5b0f2d2e0fa3554e20de71 100644 (file)
@@ -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 ) );