From: Pierangelo Masarati Date: Wed, 5 Dec 2001 08:49:52 +0000 (+0000) Subject: my compiler complains about this; does my fix comply with the intended behavior? X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~771 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6568f10b7dc88055870a71cc02aeb4f0c3b77388;p=openldap my compiler complains about this; does my fix comply with the intended behavior? --- diff --git a/libraries/liblutil/uuid.c b/libraries/liblutil/uuid.c index b0107460bb..b6286f0589 100644 --- a/libraries/liblutil/uuid.c +++ b/libraries/liblutil/uuid.c @@ -238,7 +238,7 @@ lutil_uuidstr( char *buf, size_t len ) t1 = tl & 0xffffffff; /* time_low */ t2 = ( tl >> 32 ) & 0xffff; /* time_mid */ - t3 = ( tl >> 48 ) & 0x0fff | 0x1000; /* time_hi_and_version */ + t3 = ( ( tl >> 48 ) & 0x0fff ) | 0x1000; /* time_hi_and_version */ s1 = ( ++seq & 0x1fff ) | 0x8000; /* clock_seq_and_reserved */ t1 = snprintf( buf, len,