Source-Changes-HG archive

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

[src/trunk]: src/include appease gcc-5 |= #$@#%



details:   https://anonhg.NetBSD.org/src/rev/2c850b95a462
branches:  trunk
changeset: 814355:2c850b95a462
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Mar 17 00:15:27 2016 +0000

description:
appease gcc-5 |= #$@#%

diffstat:

 include/bitstring.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 71cf6162dd8f -r 2c850b95a462 include/bitstring.h
--- a/include/bitstring.h       Thu Mar 17 00:09:47 2016 +0000
+++ b/include/bitstring.h       Thu Mar 17 00:15:27 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bitstring.h,v 1.12 2015/11/20 20:37:08 christos Exp $  */
+/*     $NetBSD: bitstring.h,v 1.13 2016/03/17 00:15:27 christos Exp $  */
 
 /*
  * Copyright (c) 1989, 1993
@@ -81,7 +81,8 @@
 
                                /* set bit N of bitstring name */
 #define        bit_set(name, bit) \
-       /*LINTED bitwise on signed*/((name)[_bit_byte(bit)] |= _bit_mask(bit))
+       /*LINTED bitwise on signed*/ \
+       ((name)[_bit_byte(bit)] = _bit_mask(bit) | (name)[bit_byte(bit))
 
                                /* clear bit N of bitstring name */
 #define        bit_clear(name, bit) \



Home | Main Index | Thread Index | Old Index