Commit e4e02863 authored by Dominik Charousset's avatar Dominik Charousset

Use temporary variable to avoid confusing Coverity

parent b23d92ff
......@@ -46,7 +46,8 @@ public:
}
void operator()(const bool& value) const {
write_int(out_, static_cast<uint8_t>(value));
uint8_t tmp = value ? 1 : 0;
write_int(out_, tmp);
}
template <class T>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment