Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Case to uintptr_t instead of using __BIT to fix 32-b...



details:   https://anonhg.NetBSD.org/src/rev/2d663f558f2d
branches:  trunk
changeset: 449446:2d663f558f2d
user:      roy <roy%NetBSD.org@localhost>
date:      Thu Mar 07 14:39:21 2019 +0000

description:
Case to uintptr_t instead of using __BIT to fix 32-bit builds.

diffstat:

 sys/sys/rbtree.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 98c02b95c36e -r 2d663f558f2d sys/sys/rbtree.h
--- a/sys/sys/rbtree.h  Thu Mar 07 14:02:16 2019 +0000
+++ b/sys/sys/rbtree.h  Thu Mar 07 14:39:21 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rbtree.h,v 1.4 2019/03/07 12:07:42 roy Exp $   */
+/*     $NetBSD: rbtree.h,v 1.5 2019/03/07 14:39:21 roy Exp $   */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -57,8 +57,8 @@
         * rb_node will have an alignment of 4 or 8 bytes.
         */
        uintptr_t rb_info;
-#define        RB_FLAG_POSITION        __BIT(1)
-#define        RB_FLAG_RED             __BIT(0)
+#define        RB_FLAG_POSITION        (uintptr_t)0x2
+#define        RB_FLAG_RED             (uintptr_t)0x1
 #define        RB_FLAG_MASK            (RB_FLAG_POSITION|RB_FLAG_RED)
 #define        RB_FATHER(rb) \
     ((struct rb_node *)((rb)->rb_info & ~RB_FLAG_MASK))



Home | Main Index | Thread Index | Old Index