Module Name: src
Committed By: christos
Date: Fri Mar 9 15:35:28 UTC 2012
Modified Files:
src/sys/sys: ptree.h
Log Message:
Cast constants to the appropriate type.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/sys/ptree.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/ptree.h
diff -u src/sys/sys/ptree.h:1.4 src/sys/sys/ptree.h:1.5
--- src/sys/sys/ptree.h:1.4 Sat Jul 30 12:37:05 2011
+++ src/sys/sys/ptree.h Fri Mar 9 10:35:28 2012
@@ -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 @@ typedef struct pt_node {
#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;