diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-06-01 18:45:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-01 18:45:26 -0700 |
commit | 6611f548cc1e6b373693cde09e9a7379659e8832 (patch) | |
tree | eb1565a85ee751d1ebc52673916d62d17ef44e36 /src/wasm-s-parser.h | |
parent | 0dc07eaa7db35cf65edbbccebe5c89b995613745 (diff) | |
parent | bd001c187b90a570ce8babaad83af3b420f48eb5 (diff) | |
download | binaryen-6611f548cc1e6b373693cde09e9a7379659e8832.tar.gz binaryen-6611f548cc1e6b373693cde09e9a7379659e8832.tar.bz2 binaryen-6611f548cc1e6b373693cde09e9a7379659e8832.zip |
Merge pull request #1033 from WebAssembly/fuzz2
More misc fuzz fixes
Diffstat (limited to 'src/wasm-s-parser.h')
-rw-r--r-- | src/wasm-s-parser.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index b02b6523b..53594e7aa 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -53,10 +53,10 @@ class Element { public: Element(MixedArena& allocator) : isList_(true), list_(allocator), line(-1), col(-1), loc(nullptr) {} - bool isList() { return isList_; } - bool isStr() { return !isList_; } - bool dollared() { return isStr() && dollared_; } - bool quoted() { return isStr() && quoted_; } + bool isList() const { return isList_; } + bool isStr() const { return !isList_; } + bool dollared() const { return isStr() && dollared_; } + bool quoted() const { return isStr() && quoted_; } size_t line, col; SourceLocation* loc; @@ -69,8 +69,8 @@ public: } // string methods - cashew::IString str(); - const char* c_str(); + cashew::IString str() const; + const char* c_str() const; Element* setString(cashew::IString str__, bool dollared__, bool quoted__); Element* setMetadata(size_t line_, size_t col_, SourceLocation* loc_); |