Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Fix reversed test (thanks mlelstv)



details:   https://anonhg.NetBSD.org/src/rev/3099a74a16ee
branches:  trunk
changeset: 980705:3099a74a16ee
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Feb 15 15:53:49 2021 +0000

description:
Fix reversed test (thanks mlelstv)

diffstat:

 sys/sys/param.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 4be99c817720 -r 3099a74a16ee sys/sys/param.h
--- a/sys/sys/param.h   Mon Feb 15 15:42:58 2021 +0000
+++ b/sys/sys/param.h   Mon Feb 15 15:53:49 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.685 2021/02/14 20:58:35 christos Exp $     */
+/*     $NetBSD: param.h,v 1.686 2021/02/15 15:53:49 christos Exp $     */
 
 /*-
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -290,7 +290,7 @@
 #ifdef __NO_STRICT_ALIGNMENT
 #define        POINTER_ALIGNED_P(p, a)         1
 #else
-#define        POINTER_ALIGNED_P(p, a)         (((uintptr_t)(p) + (a)) & ~(a))
+#define        POINTER_ALIGNED_P(p, a)         ((((uintptr_t)(p) + (a)) & ~(a)) == 0)
 #endif
 
 /*



Home | Main Index | Thread Index | Old Index