Module Name:    src
Committed By:   kamil
Date:           Thu May 24 08:28:40 UTC 2018

Modified Files:
        src/tests/lib/libc/sys: t_ptrace_wait.h

Log Message:
Try to fix 32-bit build

Cast pointer to uintptr_t rather than uintmax_t.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libc/sys/t_ptrace_wait.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libc/sys/t_ptrace_wait.h
diff -u src/tests/lib/libc/sys/t_ptrace_wait.h:1.6 src/tests/lib/libc/sys/t_ptrace_wait.h:1.7
--- src/tests/lib/libc/sys/t_ptrace_wait.h:1.6	Wed May 23 13:18:09 2018
+++ src/tests/lib/libc/sys/t_ptrace_wait.h	Thu May 24 08:28:40 2018
@@ -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 @@ trigger_bus(void)
 
 	/* 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';

Reply via email to