# HG changeset patch # User yuhi # Date 1387530165 -32400 # Node ID 759587e37bc737fa7f4235bebcf4ec8920ac1125 # Parent 093bdd5e940e3c7be65848f1f0b2dc6e3f1faaf3 Change to long diff -r 093bdd5e940e -r 759587e37bc7 example/word_count/gpu/Exec.cl --- a/example/word_count/gpu/Exec.cl Fri Dec 20 12:00:15 2013 +0900 +++ b/example/word_count/gpu/Exec.cl Fri Dec 20 18:02:45 2013 +0900 @@ -5,10 +5,10 @@ { __global unsigned long long *head_tail_flag = o_data+2; long length = param[0]; - int word_flag = 0; - int word_num = 0; - int line_num = 0; - int i = 0; + long word_flag = 0; + long word_num = 0; + long line_num = 0; + long i = 0; head_tail_flag[0] = (i_data[0] != 0x20) && (i_data[0] != 0x0A); word_num -= 1-head_tail_flag[0];