Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netbt Appease GCC in hci_filter_test()
details: https://anonhg.NetBSD.org/src/rev/b1f7b48e0658
branches: trunk
changeset: 991671:b1f7b48e0658
user: kamil <kamil%NetBSD.org@localhost>
date: Wed Jul 25 19:09:38 2018 +0000
description:
Appease GCC in hci_filter_test()
Cast the returned value from hci_filter_test explicitly to int, as
requested by GCC when building with Undefined Behavior Sanitizer.
diffstat:
sys/netbt/hci.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r bd8c76ddf5d7 -r b1f7b48e0658 sys/netbt/hci.h
--- a/sys/netbt/hci.h Wed Jul 25 19:03:50 2018 +0000
+++ b/sys/netbt/hci.h Wed Jul 25 19:09:38 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hci.h,v 1.44 2017/12/21 09:30:30 plunky Exp $ */
+/* $NetBSD: hci.h,v 1.45 2018/07/25 19:09:38 kamil Exp $ */
/*-
* Copyright (c) 2005 Iain Hibbert.
@@ -54,7 +54,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: hci.h,v 1.44 2017/12/21 09:30:30 plunky Exp $
+ * $Id: hci.h,v 1.45 2018/07/25 19:09:38 kamil Exp $
* $FreeBSD: src/sys/netgraph/bluetooth/include/ng_hci.h,v 1.6 2005/01/07 01:45:43 imp Exp $
*/
@@ -2300,7 +2300,7 @@
uint8_t off = (uint8_t)((bit - 1) >> 5);
uint8_t sh = (uint8_t)((bit - 1) & 0x1f);
- return (filter->mask[off] >> sh) & 1U;
+ return (int)((filter->mask[off] >> sh) & 1U);
}
/*
Home |
Main Index |
Thread Index |
Old Index