Module Name: src Committed By: christos Date: Mon Feb 15 15:53:49 UTC 2021
Modified Files: src/sys/sys: param.h Log Message: Fix reversed test (thanks mlelstv) To generate a diff of this commit: cvs rdiff -u -r1.685 -r1.686 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.685 src/sys/sys/param.h:1.686 --- src/sys/sys/param.h:1.685 Sun Feb 14 15:58:35 2021 +++ src/sys/sys/param.h Mon Feb 15 10:53:49 2021 @@ -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 /*