summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-09-27 16:42:15 -0700
committerGitHub <noreply@github.com>2017-09-27 16:42:15 -0700
commitb3d9ad57566c4d30f57626c6a44e2afd664b7459 (patch)
treefa2069220ddc7c461319846551fdc9deffe225bf /src/wasm.h
parentc69253378014ffc451adf916d017d8f21faae77c (diff)
parentd4f7519e64d2246be81b24b8e5fc72c8abccb759 (diff)
downloadbinaryen-b3d9ad57566c4d30f57626c6a44e2afd664b7459.tar.gz
binaryen-b3d9ad57566c4d30f57626c6a44e2afd664b7459.tar.bz2
binaryen-b3d9ad57566c4d30f57626c6a44e2afd664b7459.zip
Merge pull request #1195 from WebAssembly/fuzz
Fuzzer improvements and a fuzz fix on negative-zero comparison
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 50646e39f..c31aac9c1 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -654,8 +654,7 @@ public:
Expression* offset;
std::vector<Name> data;
Segment() {}
- Segment(Expression* offset) : offset(offset) {
- }
+ Segment(Expression* offset) : offset(offset) {}
Segment(Expression* offset, std::vector<Name>& init) : offset(offset) {
data.swap(init);
}
@@ -685,6 +684,7 @@ public:
Expression* offset;
std::vector<char> data; // TODO: optimize
Segment() {}
+ Segment(Expression* offset) : offset(offset) {}
Segment(Expression* offset, const char* init, Address size) : offset(offset) {
data.resize(size);
std::copy_n(init, size, data.begin());