mirror of
https://github.com/esphome/esphome.git
synced 2025-10-31 23:21:54 +00:00
fix
This commit is contained in:
@@ -291,8 +291,8 @@ class ProtoWriteBuffer {
|
|||||||
|
|
||||||
// size_t overload (only enabled if size_t is distinct from uint32_t and uint64_t)
|
// size_t overload (only enabled if size_t is distinct from uint32_t and uint64_t)
|
||||||
template<typename T>
|
template<typename T>
|
||||||
requires(std::is_same_v<T, size_t> && !std::is_same_v<size_t, uint32_t> &&
|
void encode_varint(T value) requires(std::is_same_v<T, size_t> && !std::is_same_v<size_t, uint32_t> &&
|
||||||
!std::is_same_v<size_t, uint64_t>) void encode_varint(T value) {
|
!std::is_same_v<size_t, uint64_t>) {
|
||||||
this->encode_varint(static_cast<uint64_t>(value));
|
this->encode_varint(static_cast<uint64_t>(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user