Skip to content

Commit

Permalink
Fix size_t not always defined.
Browse files Browse the repository at this point in the history
<vector> does not provide its definition according to the standard.
However we don't actually need size_t because the number of tasks we
deal with is largely inferior to even 32-bit integers.
  • Loading branch information
Zylann committed Mar 3, 2024
1 parent 6e93e7a commit b4fffbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/buffered_task_scheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ class BufferedTaskScheduler {
_io_tasks.push_back(task);
}

inline size_t get_main_count() const {
inline unsigned int get_main_count() const {
return _main_tasks.size();
}

inline size_t get_io_count() const {
inline unsigned int get_io_count() const {
return _io_tasks.size();
}

Expand Down

0 comments on commit b4fffbb

Please sign in to comment.