tag/Pool: use uint8_t instead of unsigned char
This commit is contained in:
@@ -29,6 +29,7 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
Mutex tag_pool_lock;
|
Mutex tag_pool_lock;
|
||||||
|
|
||||||
@@ -36,7 +37,7 @@ static constexpr size_t NUM_SLOTS = 4093;
|
|||||||
|
|
||||||
struct TagPoolSlot {
|
struct TagPoolSlot {
|
||||||
TagPoolSlot *next;
|
TagPoolSlot *next;
|
||||||
unsigned char ref;
|
uint8_t ref;
|
||||||
TagItem item;
|
TagItem item;
|
||||||
|
|
||||||
static constexpr unsigned MAX_REF = std::numeric_limits<decltype(ref)>::max();
|
static constexpr unsigned MAX_REF = std::numeric_limits<decltype(ref)>::max();
|
||||||
|
Reference in New Issue
Block a user