Mercurial > hg > Game > Cerium
changeset 1777:7b11aceb41c4 draft
minor fix
author | Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 Nov 2013 17:12:51 +0900 |
parents | 1c429035e0d1 |
children | 0e6ca13d2ed0 |
files | example/regex_mas/main.cc |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/example/regex_mas/main.cc Mon Nov 25 14:27:51 2013 +0900 +++ b/example/regex_mas/main.cc Mon Nov 25 17:12:51 2013 +0900 @@ -103,9 +103,6 @@ static void run_tasks(SchedTask *manager, WordCount *w, int task_count, HTaskPtr t_next, int size) { - - w->extra_len = w->search_word_len - 1; - if (task_count < array_task_num) { array_task_num = task_count; if (task_count<=0) return; @@ -286,6 +283,7 @@ w->search_word = search_word; w->search_word_len = strlen((const char*)w->search_word); w->BMskip_table = create_BMskiptable(w->search_word, w->search_word_len, skip); + w->extra_len = w->search_word_len - 1; //w->task_blocks = blocks; w->self = w;