Index: src/wasm/decoder.h |
diff --git a/src/wasm/decoder.h b/src/wasm/decoder.h |
index 3993e1590cf00f3301e4472aaea2bf186ef73350..5e285bbf3ef452f9ff204e33de8e988f1744bad0 100644 |
--- a/src/wasm/decoder.h |
+++ b/src/wasm/decoder.h |
@@ -281,9 +281,9 @@ class Decoder { |
bool failed() const { return !ok(); } |
bool more() const { return pc_ < end_; } |
- const byte* start() { return start_; } |
- const byte* pc() { return pc_; } |
- uint32_t pc_offset() { return static_cast<uint32_t>(pc_ - start_); } |
+ const byte* start() const { return start_; } |
+ const byte* pc() const { return pc_; } |
+ uint32_t pc_offset() const { return static_cast<uint32_t>(pc_ - start_); } |
protected: |
const byte* start_; |