From fbdba682c032851a246b49f18b69b2ade09025c2 Mon Sep 17 00:00:00 2001 From: guenther Date: Wed, 21 Jan 2015 03:05:03 +0000 Subject: [PATCH] Remove unsafe micro-optimization of *bit test* --- usr.bin/rdist/defs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/rdist/defs.h b/usr.bin/rdist/defs.h index c25725f9b6f..80bfe48785c 100644 --- a/usr.bin/rdist/defs.h +++ b/usr.bin/rdist/defs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: defs.h,v 1.35 2015/01/20 09:00:16 guenther Exp $ */ +/* $OpenBSD: defs.h,v 1.36 2015/01/21 03:05:03 guenther Exp $ */ #ifndef __DEFS_H__ #define __DEFS_H__ @@ -67,7 +67,7 @@ #endif /* Bit flag test macros */ -#define IS_ON(b,f) (b > 0 && (b & f)) +#define IS_ON(b,f) (b & f) #define IS_OFF(b,f) !(IS_ON(b,f)) #define FLAG_ON(b,f) b |= f #define FLAG_OFF(b,f) b &= ~(f) -- 2.20.1