Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contrib/protozero/README.contrib
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Source: https://github.com/mapbox/protozero
Revision: v1.8.0
Revision: v1.8.1
4 changes: 2 additions & 2 deletions contrib/protozero/include/protozero/pbf_reader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,9 @@ class pbf_reader {
bool get_bool() {
protozero_assert(tag() != 0 && "call next() before accessing field value");
protozero_assert(has_wire_type(pbf_wire_type::varint) && "not a varint");
const bool result = m_data[0] != 0;
const char* value = m_data;
skip_varint(&m_data, m_end);
return result;
return *value != 0;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions contrib/protozero/include/protozero/version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ documentation.
#define PROTOZERO_VERSION_MAJOR 1

/// The minor version number
#define PROTOZERO_VERSION_MINOR 7
#define PROTOZERO_VERSION_MINOR 8

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

/// Version number as string
#define PROTOZERO_VERSION_STRING "1.7.1"
#define PROTOZERO_VERSION_STRING "1.8.1"

#endif // PROTOZERO_VERSION_HPP