Card: Use UINT32_MAX for FileHandle's default initializer

Avoids a sign conversion
This commit is contained in:
Lioncash 2019-09-02 08:45:05 -04:00
parent e96db1e032
commit 9d3a436e70
1 changed files with 2 additions and 2 deletions

View File

@ -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;