Skip to content

Commit 9d79632

Browse files
authored
Avoid off_t in small_vector.h (#5936)
Fixes #5928 , on FreeBSD off_t is not defined in the headers we include.
1 parent 3ca8c21 commit 9d79632

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/support/small_vector.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ template<typename T, size_t N> class SmallVector {
185185
return Iterator(*this) += off;
186186
}
187187

188-
off_t operator-(const Iterator& other) const { return index - other.index; }
188+
difference_type operator-(const Iterator& other) const {
189+
return index - other.index;
190+
}
189191

190192
bool operator==(const Iterator& other) const {
191193
return parent == other.parent && index == other.index;

0 commit comments

Comments
 (0)