mirror of https://github.com/AxioDL/kabufuda.git
Card: Use UINT32_MAX for FileHandle's default initializer
Avoids a sign conversion
This commit is contained in:
parent
e96db1e032
commit
9d3a436e70
|
@ -17,9 +17,9 @@ namespace kabufuda {
|
||||||
|
|
||||||
class FileHandle {
|
class FileHandle {
|
||||||
friend class Card;
|
friend class Card;
|
||||||
uint32_t idx = -1;
|
uint32_t idx = UINT32_MAX;
|
||||||
int32_t offset = 0;
|
int32_t offset = 0;
|
||||||
FileHandle(uint32_t idx) : idx(idx) {}
|
explicit FileHandle(uint32_t idx) : idx(idx) {}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FileHandle() = default;
|
FileHandle() = default;
|
||||||
|
|
Loading…
Reference in New Issue