From ac044fcdf9ac98fca44ef2152ca3365578a7e4f3 Mon Sep 17 00:00:00 2001 From: Raul Metsma Date: Fri, 17 Oct 2025 11:22:25 +0300 Subject: [PATCH] Fix build error with i686 compiler Closes: #135 Signed-off-by: Raul Metsma --- src/electronic-ids/TLV.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/electronic-ids/TLV.hpp b/src/electronic-ids/TLV.hpp index d3cc124..e39a653 100644 --- a/src/electronic-ids/TLV.hpp +++ b/src/electronic-ids/TLV.hpp @@ -91,7 +91,7 @@ struct TLV } } - if (std::distance(begin, end) < length) { + if (std::distance(begin, end) < decltype(begin)::difference_type(length)) { THROW(std::invalid_argument, "Invalid TLV: Insufficient value data"); } }