diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-02-21 13:08:13 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-02-21 13:08:13 +0100 |
commit | e382cab17dd399ef851a4a2800a11dd7b9a69c15 (patch) | |
tree | ff54618a2124267ea45ecf227e0f43058cb34168 /include/llmr/util/pbf.hpp | |
parent | 4418f2d1c8f51ee268e2180c287abae0b8dbc574 (diff) | |
download | qtlocation-mapboxgl-e382cab17dd399ef851a4a2800a11dd7b9a69c15.tar.gz |
make implicit type conversions explicit
Diffstat (limited to 'include/llmr/util/pbf.hpp')
-rw-r--r-- | include/llmr/util/pbf.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llmr/util/pbf.hpp b/include/llmr/util/pbf.hpp index 132cc14354..2e99cd91cb 100644 --- a/include/llmr/util/pbf.hpp +++ b/include/llmr/util/pbf.hpp @@ -20,7 +20,7 @@ struct pbf { struct unknown_field_type_exception : exception {}; struct end_of_buffer_exception : exception {}; - inline pbf(const unsigned char *data, uint32_t length); + inline pbf(const unsigned char *data, size_t length); inline pbf(); inline operator bool() const; @@ -49,7 +49,7 @@ struct pbf { uint32_t tag = 0; }; -pbf::pbf(const unsigned char *data, uint32_t length) +pbf::pbf(const unsigned char *data, size_t length) : data(data), end(data + length), value(0), |