Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 avoid signed-compare warning; use uintma...
details: https://anonhg.NetBSD.org/src/rev/372308ef4c52
branches: trunk
changeset: 1003674:372308ef4c52
user: christos <christos%NetBSD.org@localhost>
date: Wed Sep 25 21:40:42 2019 +0000
description:
avoid signed-compare warning; use uintmax_t to print.
diffstat:
sys/compat/netbsd32/netbsd32.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (22 lines):
diff -r 7858e12a7fbf -r 372308ef4c52 sys/compat/netbsd32/netbsd32.h
--- a/sys/compat/netbsd32/netbsd32.h Wed Sep 25 20:19:59 2019 +0000
+++ b/sys/compat/netbsd32/netbsd32.h Wed Sep 25 21:40:42 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32.h,v 1.124 2019/09/22 22:59:38 christos Exp $ */
+/* $NetBSD: netbsd32.h,v 1.125 2019/09/25 21:40:42 christos Exp $ */
/*
* Copyright (c) 1998, 2001, 2008, 2015 Matthew R. Green
@@ -128,9 +128,9 @@
netbsd32_ptr32i(const void *p64)
{
uintptr_t u64 = (uintptr_t)p64;
- KASSERTMSG(u64 == (NETBSD32_POINTER_TYPE)u64, "u64 %llx != %llx",
- (unsigned long long)u64,
- (unsigned long long)(NETBSD32_POINTER_TYPE)u64);
+ KASSERTMSG(u64 == (uintptr_t)(NETBSD32_POINTER_TYPE)u64,
+ "u64 %jx != %jx", (uintmax_t)u64,
+ (uintmax_t)(NETBSD32_POINTER_TYPE)u64);
return u64;
}
Home |
Main Index |
Thread Index |
Old Index