Module Name:    src
Committed By:   christos
Date:           Mon Feb 15 19:46:53 UTC 2021

Modified Files:
        src/sys/sys: param.h

Log Message:
the fourth time is the charm


To generate a diff of this commit:
cvs rdiff -u -r1.687 -r1.688 src/sys/sys/param.h

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

Modified files:

Index: src/sys/sys/param.h
diff -u src/sys/sys/param.h:1.687 src/sys/sys/param.h:1.688
--- src/sys/sys/param.h:1.687	Mon Feb 15 13:33:28 2021
+++ src/sys/sys/param.h	Mon Feb 15 14:46:53 2021
@@ -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
 
 /*

Reply via email to