X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=ad40a34146bbd8e8b8fe0f80be4dcc23b5dd7d44;hp=96ad121efeec2632ef85cf033b22497f3cadc832;hb=7a2825053e3eb5204e6b45d0cadb9264e77ac69f;hpb=4e619a13d6671db198bc9c39d54dd7f243ef5873;ds=sidebyside diff --git a/src/thread.h b/src/thread.h index 96ad121e..ad40a341 100644 --- a/src/thread.h +++ b/src/thread.h @@ -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(); }