Mercurial > hg > Game > Cerium
diff example/regex_mas/main.cc @ 1950:1f297d3eacb1 draft
fix bugs
author | masa |
---|---|
date | Thu, 06 Feb 2014 17:55:06 +0900 |
parents | f3e9f811c387 |
children | 30b95f372a0d |
line wrap: on
line diff
--- a/example/regex_mas/main.cc Thu Feb 06 16:30:41 2014 +0900 +++ b/example/regex_mas/main.cc Thu Feb 06 17:55:06 2014 +0900 @@ -253,7 +253,7 @@ if (divide_read_flag != 0) { printf("[divide read mode]\n"); - w->file_mmap = (char*)manager->allocate(sizeof(w->read_filesize)); + w->file_mmap = (char*)manager->allocate(w->read_filesize); }else { printf("[mmap mode]\n"); r_read = manager->create_task(MMAP , (memaddr)&w->self, sizeof(memaddr),0,0);