Skip to content

Commit 9b0bcd6

Browse files
authored
Merge pull request #2356 from joto/contrib-protozero
Update included protozero to current version 1.8.1
2 parents 9e3d59f + 2aab60a commit 9b0bcd6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

contrib/protozero/README.contrib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Source: https://github.com/mapbox/protozero
2-
Revision: v1.8.0
2+
Revision: v1.8.1

contrib/protozero/include/protozero/pbf_reader.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,9 @@ class pbf_reader {
494494
bool get_bool() {
495495
protozero_assert(tag() != 0 && "call next() before accessing field value");
496496
protozero_assert(has_wire_type(pbf_wire_type::varint) && "not a varint");
497-
const bool result = m_data[0] != 0;
497+
const char* value = m_data;
498498
skip_varint(&m_data, m_end);
499-
return result;
499+
return *value != 0;
500500
}
501501

502502
/**

contrib/protozero/include/protozero/version.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ documentation.
2020
#define PROTOZERO_VERSION_MAJOR 1
2121

2222
/// The minor version number
23-
#define PROTOZERO_VERSION_MINOR 7
23+
#define PROTOZERO_VERSION_MINOR 8
2424

2525
/// The patch number
2626
#define PROTOZERO_VERSION_PATCH 1
@@ -29,6 +29,6 @@ documentation.
2929
#define PROTOZERO_VERSION_CODE (PROTOZERO_VERSION_MAJOR * 10000 + PROTOZERO_VERSION_MINOR * 100 + PROTOZERO_VERSION_PATCH)
3030

3131
/// Version number as string
32-
#define PROTOZERO_VERSION_STRING "1.7.1"
32+
#define PROTOZERO_VERSION_STRING "1.8.1"
3333

3434
#endif // PROTOZERO_VERSION_HPP

0 commit comments

Comments
 (0)