Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Cast constants to the appropriate type.
details: https://anonhg.NetBSD.org/src/rev/dd15ec645d30
branches: trunk
changeset: 777921:dd15ec645d30
user: christos <christos%NetBSD.org@localhost>
date: Fri Mar 09 15:35:28 2012 +0000
description:
Cast constants to the appropriate type.
diffstat:
sys/sys/ptree.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (22 lines):
diff -r 153a156513ae -r dd15ec645d30 sys/sys/ptree.h
--- a/sys/sys/ptree.h Fri Mar 09 15:24:34 2012 +0000
+++ b/sys/sys/ptree.h Fri Mar 09 15:35:28 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ptree.h,v 1.4 2011/07/30 16:37:05 christos Exp $ */
+/* $NetBSD: ptree.h,v 1.5 2012/03/09 15:35:28 christos Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -52,9 +52,9 @@
#define PT_SLOT_ROOT 0u
#define PT_SLOT_OTHER 1u
#define PT_SLOT_ODDMAN 1u
-#define PT_TYPE_LEAF 0x00000000u
-#define PT_TYPE_BRANCH 0x00000001u
-#define PT_TYPE_MASK 0x00000001u
+#define PT_TYPE_LEAF ((uintptr_t)0x00000000u)
+#define PT_TYPE_BRANCH ((uintptr_t)0x00000001u)
+#define PT_TYPE_MASK ((uintptr_t)0x00000001u)
#endif /* _PT_PRIVATE */
uint32_t ptn_nodedata;
Home |
Main Index |
Thread Index |
Old Index