PERFORCE change 65404 for review

David Xu davidxu at FreeBSD.org
Thu Nov 18 06:22:17 PST 2004


http://perforce.freebsd.org/chv.cgi?CH=65404

Change 65404 by davidxu at davidxu_alona on 2004/11/18 14:21:53

	Fix compiling for 64-bits machine.

Affected files ...

.. //depot/projects/davidxu_ksedbg/src/sys/kern/kern_umtx.c#9 edit

Differences ...

==== //depot/projects/davidxu_ksedbg/src/sys/kern/kern_umtx.c#9 (text+ko) ====

@@ -93,7 +93,7 @@
 static inline int
 umtx_hash(unsigned pid, void *umtx)
 {
-	unsigned n = (unsigned)umtx + pid;
+	unsigned n = (uintptr_t)umtx + pid;
 
 	return (n * GOLDEN_RATIO_PRIME) >> UMTX_SHIFTS;
 }


More information about the p4-projects mailing list