summaryrefslogtreecommitdiffstats
path: root/src/knx/core/qknxbytearray.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/knx/core/qknxbytearray.h')
-rw-r--r--src/knx/core/qknxbytearray.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/knx/core/qknxbytearray.h b/src/knx/core/qknxbytearray.h
index 4f1fdb1..efc1a02 100644
--- a/src/knx/core/qknxbytearray.h
+++ b/src/knx/core/qknxbytearray.h
@@ -92,7 +92,10 @@ public:
void resize(int size);
inline quint8 at(int i) const { return m_bytes.at(i); }
- inline void set(int i, quint8 value) { m_bytes[i] = value; }
+ inline void set(int i, quint8 value) {
+ Q_ASSERT(i >= 0 && i < size());
+ m_bytes[i] = value;
+ }
inline void setValue(int i, quint8 value)
{