summaryrefslogtreecommitdiffstats
path: root/src/storage/phonetic_key_matrix.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage/phonetic_key_matrix.h')
-rw-r--r--src/storage/phonetic_key_matrix.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/storage/phonetic_key_matrix.h b/src/storage/phonetic_key_matrix.h
index 328cee2..6a1940e 100644
--- a/src/storage/phonetic_key_matrix.h
+++ b/src/storage/phonetic_key_matrix.h
@@ -123,8 +123,11 @@ public:
/* Array of keys and key rests. */
bool get_items(size_t index, GArray * keys, GArray * key_rests) {
- return m_keys.get_items(index, keys) &&
+ bool result = m_keys.get_items(index, keys) &&
m_key_rests.get_items(index, key_rests);
+
+ assert(keys->len == key_rests->len);
+ return result;
}
bool append(size_t index, const ChewingKey & key,