File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11Source: https://github.com/mapbox/protozero
2- Revision: v1.8.0
2+ Revision: v1.8.1
Original file line number Diff line number Diff 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 /* *
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments