Skip to content

Commit

Permalink
Fixed: One bit too many allocated for JobHandle
Browse files Browse the repository at this point in the history
  • Loading branch information
richardbiely committed Sep 24, 2024
1 parent 86c4d2b commit 3f8130b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/gaia/mt/jobhandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace gaia {

struct JobHandle final {
static constexpr JobInternalType IdBits = 20;
static constexpr JobInternalType GenBits = 12;
static constexpr JobInternalType GenBits = 11;
static constexpr JobInternalType PrioBits = 1;
static constexpr JobInternalType AllBits = IdBits + GenBits + PrioBits;
static constexpr JobInternalType IdMask = (uint32_t)(uint64_t(1) << IdBits) - 1;
Expand All @@ -29,7 +29,7 @@ namespace gaia {
struct JobData {
//! Index in entity array
JobInternalType id: IdBits;
//! Generation index. Incremented every time an entity is deleted
//! Generation index. Incremented every time an item is deleted
JobInternalType gen: GenBits;
//! Job priority. 1-priority, 0-background
JobInternalType prio: PrioBits;
Expand Down

0 comments on commit 3f8130b

Please sign in to comment.