Skip to content

Commit

Permalink
windows build: uint -> uint8_t
Browse files Browse the repository at this point in the history
  • Loading branch information
cldellow committed Feb 7, 2024
1 parent 93f6185 commit 6951cd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/attribute_store.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ class AttributeKeyStore {
std::map<const std::string*, uint16_t, string_ptr_less_than> keys2index;
};

enum class AttributePairType: uint { Bool = 0, Float = 1, String = 2 };
enum class AttributePairType: uint8_t { Bool = 0, Float = 1, String = 2 };
// AttributePair is a key/value pair (with minzoom)
#pragma pack(push, 1)
struct AttributePair {
short keyIndex : 9;
AttributePairType valueType : 2;
uint minzoom : 5; // Support zooms from 0..31. In practice, we expect z16 to be the biggest minzoom.
uint8_t minzoom : 5; // Support zooms from 0..31. In practice, we expect z16 to be the biggest minzoom.
union {
float floatValue_;
PooledString stringValue_;
Expand Down

0 comments on commit 6951cd7

Please sign in to comment.