From: Mark Valence Date: Fri, 9 Jun 2000 06:48:43 +0000 (+0000) Subject: Fix operator precedence bug. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2684 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f5101f8274ff46c61c719e45dc0541f0b72d98fe;p=openldap Fix operator precedence bug. --- diff --git a/libraries/libldap/utf-8.c b/libraries/libldap/utf-8.c index 5f6a8c5872..0d12f010a3 100644 --- a/libraries/libldap/utf-8.c +++ b/libraries/libldap/utf-8.c @@ -202,7 +202,7 @@ char* ldap_utf8_next( const char * p ) } for( i=1; i<6; i++ ) { - if ( u[i] & 0xc0 != 0x80 ) { + if ( ( u[i] & 0xc0 ) != 0x80 ) { return (char *) &p[i]; } } @@ -225,7 +225,7 @@ char* ldap_utf8_prev( const char * p ) const unsigned char *u = p; for( i=-1; i>-6 ; i-- ) { - if ( u[i] & 0xc0 != 0x80 ) { + if ( ( u[i] & 0xc0 ) != 0x80 ) { return (char *) &p[i]; } } @@ -255,7 +255,7 @@ int ldap_utf8_copy( char* dst, const char *src ) } for( i=1; i<6; i++ ) { - if ( u[i] & 0xc0 != 0x80 ) { + if ( ( u[i] & 0xc0 ) != 0x80 ) { return i; } dst[i] = src[i];