summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavlin Radoslavov <pavlin@google.com>2017-10-03 05:15:41 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-10-03 05:15:41 +0000
commiteb9ba9952350d9527d305fb615b4679d53370da0 (patch)
tree131ddb0d9fcd3f9ae88666c8286e8b8dbc1d4a11
parent7b1e826e9c986055cf31bd174baed2fcc87c368c (diff)
parent181144a50114c824cfe3cdfd695c11a074673a5e (diff)
downloadandroid_system_bt-eb9ba9952350d9527d305fb615b4679d53370da0.tar.gz
android_system_bt-eb9ba9952350d9527d305fb615b4679d53370da0.tar.bz2
android_system_bt-eb9ba9952350d9527d305fb615b4679d53370da0.zip
Fixed the implementation of std::equal_to<bt_bdaddr_t>
am: 181144a501 Change-Id: Ic8e35d75ebe14eccd7fd169572fe5bff39d150f6
-rw-r--r--btif/src/btif_ble_scanner.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/btif/src/btif_ble_scanner.cc b/btif/src/btif_ble_scanner.cc
index 162935b79..9188624ba 100644
--- a/btif/src/btif_ble_scanner.cc
+++ b/btif/src/btif_ble_scanner.cc
@@ -76,7 +76,7 @@ struct hash<bt_bdaddr_t> {
template <>
struct equal_to<bt_bdaddr_t> {
size_t operator()(const bt_bdaddr_t& x, const bt_bdaddr_t& y) const {
- return memcmp(x.address, y.address, BD_ADDR_LEN);
+ return (memcmp(x.address, y.address, BD_ADDR_LEN) == 0);
}
};
}