summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-09-13 14:28:07 -0700
committerGitHub <noreply@github.com>2023-09-13 14:28:07 -0700
commit9d79632c210a8c5002657ae87ff06c70ee109e8f (patch)
tree1b8d4951f5ce237c3514063d4796194e5288a0a1
parent3ca8c21b89c207ce5d872e9cb2d410a869522d38 (diff)
downloadbinaryen-9d79632c210a8c5002657ae87ff06c70ee109e8f.tar.gz
binaryen-9d79632c210a8c5002657ae87ff06c70ee109e8f.tar.bz2
binaryen-9d79632c210a8c5002657ae87ff06c70ee109e8f.zip
Avoid off_t in small_vector.h (#5936)
Fixes #5928 , on FreeBSD off_t is not defined in the headers we include.
-rw-r--r--src/support/small_vector.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/support/small_vector.h b/src/support/small_vector.h
index 4f2dc0b81..9ef90d83a 100644
--- a/src/support/small_vector.h
+++ b/src/support/small_vector.h
@@ -185,7 +185,9 @@ public:
return Iterator(*this) += off;
}
- off_t operator-(const Iterator& other) const { return index - other.index; }
+ difference_type operator-(const Iterator& other) const {
+ return index - other.index;
+ }
bool operator==(const Iterator& other) const {
return parent == other.parent && index == other.index;