Skip to content

Commit

Permalink
Fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Jan 4, 2021
1 parent b67b25c commit d637009
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions include/libcotask/task.h
Original file line number Diff line number Diff line change
@@ -119,9 +119,8 @@ namespace cotask {
return ptr_t();
}

typename coroutine_t::ptr_t coroutine =
coroutine_t::create(reinterpret_cast<a_t *>(UTIL_CONFIG_NULLPTR), alloc, stack_size,
sizeof(impl::task_impl *) + private_buffer_size, action_size + task_size);
typename coroutine_t::ptr_t coroutine = coroutine_t::create(
reinterpret_cast<a_t *>(NULL), alloc, stack_size, sizeof(impl::task_impl *) + private_buffer_size, action_size + task_size);
if (!coroutine) {
return ptr_t();
}
2 changes: 1 addition & 1 deletion test/cli/cmd_option.h
Original file line number Diff line number Diff line change
@@ -444,7 +444,7 @@ namespace util {
inline void start(int argv, char *argc[], bool is_single_cmd = false, void *ext_param = NULL) const {
typedef const char *conv_char_t;

start(argv, reinterpret_cast<conv_char_t *>(argc), is_single_cmd, ext_param);
start(argv, const_cast<conv_char_t *>(argc), is_single_cmd, ext_param);
}

/**

0 comments on commit d637009

Please sign in to comment.