fixes facade_phrase_table2.h
authorPeng Wu <alexepico@gmail.com>
Mon, 3 Sep 2012 02:08:03 +0000 (10:08 +0800)
committerPeng Wu <alexepico@gmail.com>
Mon, 3 Sep 2012 02:08:03 +0000 (10:08 +0800)
src/storage/facade_phrase_table2.h

index f935ca6..a6e8bdc 100644 (file)
@@ -100,8 +100,8 @@ public:
                /* out */ PhraseTokens tokens) const {
         /* clear ranges. */
         for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) {
-            if (ranges[i])
-                g_array_set_size(ranges[i], 0);
+            if (tokens[i])
+                g_array_set_size(tokens[i], 0);
         }
 
         int result = SEARCH_NONE;