Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys the fourth time is the charm
details: https://anonhg.NetBSD.org/src/rev/5247b7a30c37
branches: trunk
changeset: 980716:5247b7a30c37
user: christos <christos%NetBSD.org@localhost>
date: Mon Feb 15 19:46:53 2021 +0000
description:
the fourth time is the charm
diffstat:
sys/sys/param.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 06a56a19b200 -r 5247b7a30c37 sys/sys/param.h
--- a/sys/sys/param.h Mon Feb 15 19:19:29 2021 +0000
+++ b/sys/sys/param.h Mon Feb 15 19:46:53 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.687 2021/02/15 18:33:28 christos Exp $ */
+/* $NetBSD: param.h,v 1.688 2021/02/15 19:46:53 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)) == 0)
+#define POINTER_ALIGNED_P(p, a) (((uintptr_t)(p) & (a)) == 0)
#endif
/*
Home |
Main Index |
Thread Index |
Old Index