summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wasm-type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-type.h b/src/wasm-type.h
index 542d26263..0d0b49c70 100644
--- a/src/wasm-type.h
+++ b/src/wasm-type.h
@@ -267,7 +267,7 @@ public:
// Iterator traits
using iterator_category = std::random_access_iterator_tag;
using value_type = Type;
- using difference_type = long;
+ using difference_type = std::ptrdiff_t;
using pointer = const Type*;
using reference = const Type&;