]> git.sur5r.net Git - openldap/commitdiff
my compiler complains about this; does my fix comply with the intended behavior?
authorPierangelo Masarati <ando@openldap.org>
Wed, 5 Dec 2001 08:49:52 +0000 (08:49 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 5 Dec 2001 08:49:52 +0000 (08:49 +0000)
libraries/liblutil/uuid.c

index b0107460bb2b2bcb2e16e4b687196cde23d536a9..b6286f0589de1545bd91233743e9f95abb2edade 100644 (file)
@@ -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,