mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix operator precedence bug.
This commit is contained in:
parent
0715e29ae5
commit
f5101f8274
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user