From 8b618b16fd4cead026fdc48177d6e31fbce5fc49 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 25 Dec 2017 15:13:14 +0800 Subject: fixes get_candidates method --- src/lookup/phonetic_lookup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lookup/phonetic_lookup.h b/src/lookup/phonetic_lookup.h index 845bf90..96cb7cf 100644 --- a/src/lookup/phonetic_lookup.h +++ b/src/lookup/phonetic_lookup.h @@ -286,7 +286,7 @@ public: node->number(); const trellis_value_t * value = node->begin(); - for (gint32 j = 0; j < node->length(); ++j) { + for (; value < node->end(); ++value) { g_ptr_array_add(candidates, (trellis_value_t *)value); } } -- cgit