mirror of
https://github.com/gbdev/rgbds.git
synced 2026-06-14 20:52:11 +00:00
Correct comment SIZE_MAX to UINT16_MAX
This commit is contained in:
@@ -12,7 +12,7 @@ public:
|
|||||||
static constexpr size_t capacity = 4;
|
static constexpr size_t capacity = 4;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Up to 4 colors, sorted, and where SIZE_MAX means the slot is empty
|
// Up to 4 colors, sorted, and where UINT16_MAX means the slot is empty
|
||||||
// (OK because it's not a valid color index)
|
// (OK because it's not a valid color index)
|
||||||
// Sorting is done on the raw numerical values to lessen `compare`'s complexity
|
// Sorting is done on the raw numerical values to lessen `compare`'s complexity
|
||||||
std::array<uint16_t, capacity> _colorIndices{UINT16_MAX, UINT16_MAX, UINT16_MAX, UINT16_MAX};
|
std::array<uint16_t, capacity> _colorIndices{UINT16_MAX, UINT16_MAX, UINT16_MAX, UINT16_MAX};
|
||||||
|
|||||||
Reference in New Issue
Block a user