Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/sys Try to fix 32-bit build



details:   https://anonhg.NetBSD.org/src/rev/0edccecf6508
branches:  trunk
changeset: 322936:0edccecf6508
user:      kamil <kamil%NetBSD.org@localhost>
date:      Thu May 24 08:28:40 2018 +0000

description:
Try to fix 32-bit build

Cast pointer to uintptr_t rather than uintmax_t.

diffstat:

 tests/lib/libc/sys/t_ptrace_wait.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r cbbbd741617d -r 0edccecf6508 tests/lib/libc/sys/t_ptrace_wait.h
--- a/tests/lib/libc/sys/t_ptrace_wait.h        Thu May 24 07:00:28 2018 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.h        Thu May 24 08:28:40 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_ptrace_wait.h,v 1.6 2018/05/23 13:18:09 kamil Exp $  */
+/*     $NetBSD: t_ptrace_wait.h,v 1.7 2018/05/24 08:28:40 kamil Exp $  */
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -558,11 +558,11 @@
 
        /* Open an empty file for writing. */
        fp = tmpfile();
-       FORKEE_ASSERT_NEQ((uintmax_t)fp, (uintmax_t)NULL);
+       FORKEE_ASSERT_NEQ((uintptr_t)fp, (uintptr_t)NULL);
 
        /* Map an empty file with mmap(2) to a pointer. */
        p = mmap(0, 1, PROT_WRITE, MAP_PRIVATE, fileno(fp), 0);
-       FORKEE_ASSERT_NEQ((uintmax_t)p, (uintmax_t)MAP_FAILED);
+       FORKEE_ASSERT_NEQ((uintptr_t)p, (uintptr_t)MAP_FAILED);
 
        /* Invalid memory access causes CPU trap, translated to SIGBUS */
        *p = 'a';



Home | Main Index | Thread Index | Old Index