Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Cast to pointer via intptr_t.



details:   https://anonhg.NetBSD.org/src/rev/cf5e64b0064c
branches:  trunk
changeset: 555789:cf5e64b0064c
user:      scw <scw%NetBSD.org@localhost>
date:      Fri Nov 28 08:18:03 2003 +0000

description:
Cast to pointer via intptr_t.

diffstat:

 sys/kern/kern_sa.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 51eebc438749 -r cf5e64b0064c sys/kern/kern_sa.c
--- a/sys/kern/kern_sa.c        Fri Nov 28 08:15:10 2003 +0000
+++ b/sys/kern/kern_sa.c        Fri Nov 28 08:18:03 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_sa.c,v 1.45 2003/11/25 10:05:17 cl Exp $  */
+/*     $NetBSD: kern_sa.c,v 1.46 2003/11/28 08:18:03 scw Exp $ */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_sa.c,v 1.45 2003/11/25 10:05:17 cl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sa.c,v 1.46 2003/11/28 08:18:03 scw Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -729,7 +729,7 @@
                return 1;
        }
 
-       sast.sast_stack.ss_sp = (void *)_UC_MACHINE_SP(l_ctx);
+       sast.sast_stack.ss_sp = (void *)(intptr_t)_UC_MACHINE_SP(l_ctx);
        sast.sast_stack.ss_size = 1;
 
        if (SPLAY_FIND(sasttree, &sa->sa_stackstree, &sast)) {



Home | Main Index | Thread Index | Old Index