Skip to content

Commit 2288a02

Browse files
metsmamrts
authored andcommitted
Fix build error with i686 compiler
Closes: #135 Signed-off-by: Raul Metsma <[email protected]>
1 parent 993dd45 commit 2288a02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/electronic-ids/TLV.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ struct TLV
9191
}
9292
}
9393

94-
if (std::distance(begin, end) < length) {
94+
if (std::distance(begin, end) < decltype(begin)::difference_type(length)) {
9595
THROW(std::invalid_argument, "Invalid TLV: Insufficient value data");
9696
}
9797
}

0 commit comments

Comments
 (0)