diff example/regex_mas/ppe/Exec.cc @ 1743:36eb8c21281a draft

remove warning in regex_mas
author Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
date Wed, 13 Nov 2013 19:25:46 +0900
parents 5a294d8e5643
children 68e5872085ff
line wrap: on
line diff
--- a/example/regex_mas/ppe/Exec.cc	Tue Nov 12 17:41:33 2013 +0900
+++ b/example/regex_mas/ppe/Exec.cc	Wed Nov 13 19:25:46 2013 +0900
@@ -9,7 +9,7 @@
 SchedDefineTask(Exec);
 
 //ボイヤームーア法による文字列検索アルゴリズム
-int BM_method(unsigned char *text,int *text_length,
+int BM_method(unsigned char *text,int text_length,
               unsigned char *pattern,unsigned long long *match_string)
 {
     int skip[256];
@@ -49,7 +49,7 @@
 {
     unsigned char *i_data = (unsigned char *)s->get_input(rbuf,0);
     unsigned long long *o_data = (unsigned long long*)wbuf;
-    int *length = (int*)s->get_param(0);
+    int length = (int)s->get_inputSize(0);
     //unsigned char *search_word = (unsigned char*)s->get_input(1);
     unsigned char search_word[] = "doing";