Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh5/sh5 Cast a pointer to uintptr_t before comparin...
details: https://anonhg.NetBSD.org/src/rev/3224f3762ebf
branches: trunk
changeset: 534006:3224f3762ebf
user: scw <scw%NetBSD.org@localhost>
date: Fri Jul 12 19:27:32 2002 +0000
description:
Cast a pointer to uintptr_t before comparing with a long int.
diffstat:
sys/arch/sh5/sh5/sig_machdep.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r bccda292e06c -r 3224f3762ebf sys/arch/sh5/sh5/sig_machdep.c
--- a/sys/arch/sh5/sh5/sig_machdep.c Fri Jul 12 18:53:16 2002 +0000
+++ b/sys/arch/sh5/sh5/sig_machdep.c Fri Jul 12 19:27:32 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sig_machdep.c,v 1.5 2002/07/11 21:23:30 scw Exp $ */
+/* $NetBSD: sig_machdep.c,v 1.6 2002/07/12 19:27:32 scw Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -164,7 +164,7 @@
* program jumps out of a signal handler.
*/
scp = SCARG(uap, sigcntxp);
- if (ALIGN(scp) != (register_t)scp)
+ if (ALIGN(scp) != (uintptr_t)scp)
return (EINVAL);
if (copyin((caddr_t)scp, &ksc, sizeof(ksc)) != 0)
Home |
Main Index |
Thread Index |
Old Index