Skip to content

Commit

Permalink
fix a compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Apr 1, 2017
1 parent 84e48a7 commit fa6c101
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sample/sample_benchmark_coroutine_mem_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ int main(int argc, char *argv[]) {
}

stack_mem_pool = new char[MAX_COROUTINE_NUMBER * stack_size];
memset(stack_mem_pool, 0, sizeof(MAX_COROUTINE_NUMBER * stack_size));
memset(stack_mem_pool, 0, MAX_COROUTINE_NUMBER * stack_size);

time_t begin_time = time(NULL);
clock_t begin_clock = clock();
Expand Down
2 changes: 1 addition & 1 deletion sample/sample_benchmark_task_mem_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ int main(int argc, char *argv[]) {

stack_mem_pool.index = 0;
stack_mem_pool.buff = new char[stack_size * max_task_number];
memset(stack_mem_pool.buff, 0, sizeof(MAX_COROUTINE_NUMBER * stack_size));
memset(stack_mem_pool.buff, 0, MAX_COROUTINE_NUMBER * stack_size);

time_t begin_time = time(NULL);
clock_t begin_clock = clock();
Expand Down

0 comments on commit fa6c101

Please sign in to comment.