summaryrefslogtreecommitdiffstats
path: root/src/storage/phonetic_key_matrix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage/phonetic_key_matrix.cpp')
-rw-r--r--src/storage/phonetic_key_matrix.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/storage/phonetic_key_matrix.cpp b/src/storage/phonetic_key_matrix.cpp
index 1f5b8ea..b0b69f9 100644
--- a/src/storage/phonetic_key_matrix.cpp
+++ b/src/storage/phonetic_key_matrix.cpp
@@ -79,11 +79,10 @@ bool dump_phonetic_key_matrix(PhoneticKeyMatrix * matrix) {
for (size_t index = 0; index < length; ++index) {
matrix->get_items(index, keys, key_rests);
+ assert(keys->len == key_rests->len);
printf("Column:%ld:\n", index);
- assert(keys->len == key_rests->len);
-
for (size_t i = 0; i < keys->len; ++i) {
ChewingKey * key = &g_array_index(keys, ChewingKey, i);
ChewingKeyRest * key_rest = &g_array_index(key_rests,