Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/mips/gen Cast with uintptr_t instead of u_long.
details: https://anonhg.NetBSD.org/src/rev/d333dca63b6e
branches: trunk
changeset: 541850:d333dca63b6e
user: matt <matt%NetBSD.org@localhost>
date: Sun Jan 19 08:53:36 2003 +0000
description:
Cast with uintptr_t instead of u_long.
diffstat:
lib/libc/arch/mips/gen/makecontext.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c75e28c6ecd3 -r d333dca63b6e lib/libc/arch/mips/gen/makecontext.c
--- a/lib/libc/arch/mips/gen/makecontext.c Sun Jan 19 07:29:19 2003 +0000
+++ b/lib/libc/arch/mips/gen/makecontext.c Sun Jan 19 08:53:36 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: makecontext.c,v 1.2 2003/01/18 11:10:44 thorpej Exp $ */
+/* $NetBSD: makecontext.c,v 1.3 2003/01/19 08:53:36 matt Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: makecontext.c,v 1.2 2003/01/18 11:10:44 thorpej Exp $");
+__RCSID("$NetBSD: makecontext.c,v 1.3 2003/01/19 08:53:36 matt Exp $");
#endif
#include <inttypes.h>
@@ -64,7 +64,7 @@
/* LINTED uintptr_t is safe */
sp -= (argc >= 4 ? argc : 4); /* Make room for >=4 arguments. */
sp = (uintptr_t *)
- ((u_long)sp & ~0x7); /* Align on double-word boundary. */
+ ((uintptr_t)sp & ~0x7); /* Align on double-word boundary. */
gr[_REG_SP] = (__greg_t)sp;
gr[_REG_RA] = (__greg_t)__resumecontext;
Home |
Main Index |
Thread Index |
Old Index