summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetooth.h
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-07-11 13:05:32 +0200
committerAlex Blasche <alexander.blasche@digia.com>2014-07-16 08:28:49 +0200
commit447b2366bbf999858db4ddecadd9fcb0fae63447 (patch)
tree3697502d1cadbbc8fb95769604426a48b17794ad /src/bluetooth/qbluetooth.h
parentf399837b3a723af9add6d9ea2d2e988f64f76ae0 (diff)
Convert QLowEnergyHandle from quint32 to quint16
This is in accordence with the maximal possible handle size of 0xffff as per Bluetooth spec. As a side effect processReply() had to be modified since endHandle (0xffff) + 1 caused a type overrun. Change-Id: Ibdd0ec49f6f5fba7cf875f92a52659c6961076e9 Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Diffstat (limited to 'src/bluetooth/qbluetooth.h')
-rw-r--r--src/bluetooth/qbluetooth.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetooth.h b/src/bluetooth/qbluetooth.h
index 5636c823..f9650385 100644
--- a/src/bluetooth/qbluetooth.h
+++ b/src/bluetooth/qbluetooth.h
@@ -59,7 +59,7 @@ Q_DECLARE_FLAGS(SecurityFlags, Security)
Q_DECLARE_OPERATORS_FOR_FLAGS(SecurityFlags)
}
-typedef quint32 QLowEnergyHandle;
+typedef quint16 QLowEnergyHandle;
QT_END_NAMESPACE