mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Use size_t as operator[] argument type
This better mimics std::vector::operator[] and fixes a warning with MSVC 64bit. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
4e619a13d6
commit
7a2825053e
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ public:
|
|||
void init(); // No c'tor, Threads object is global and engine shall be fully initialized
|
||||
~ThreadPool();
|
||||
|
||||
Thread& operator[](int id) { return *threads[id]; }
|
||||
Thread& operator[](size_t id) { return *threads[id]; }
|
||||
bool use_sleeping_threads() const { return useSleepingThreads; }
|
||||
int min_split_depth() const { return minimumSplitDepth; }
|
||||
size_t size() const { return threads.size(); }
|
||||
|
|
Loading…
Add table
Reference in a new issue