summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
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());