From 6951cd73460fe2b89f9427d1fe98efbf3f8ddcf0 Mon Sep 17 00:00:00 2001 From: Colin Dellow Date: Tue, 6 Feb 2024 21:02:59 -0500 Subject: [PATCH] windows build: uint -> uint8_t --- include/attribute_store.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/attribute_store.h b/include/attribute_store.h index 4df47854..498c6c6c 100644 --- a/include/attribute_store.h +++ b/include/attribute_store.h @@ -42,13 +42,13 @@ class AttributeKeyStore { std::map 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_;