Skip to content

Commit

Permalink
change pool size type to uint32
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Sadokhov committed Aug 23, 2023
1 parent 50fc281 commit b1a9f85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion runtime/thread-pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ void ThreadPool::init() noexcept {
}
}

int thread_pool_size = 0;
uint32_t thread_pool_size = 0;
2 changes: 1 addition & 1 deletion runtime/thread-pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ class ThreadPool : vk::not_copyable {
BS::thread_pool * thread_pool_ptr{nullptr};
};

extern int thread_pool_size;
extern uint32_t thread_pool_size;
2 changes: 1 addition & 1 deletion server/php-engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2196,7 +2196,7 @@ int main_args_handler(int i, const char *long_option) {
return res;
}
case 2036: {
return read_option_to(long_option, 0, 2048, thread_pool_size);
return read_option_to(long_option, 0U, 2048U, thread_pool_size);
}
default:
return -1;
Expand Down

0 comments on commit b1a9f85

Please sign in to comment.