Skip to content

Commit a103f8f

Browse files
committed
fix build
Signed-off-by: Takeshi Yoneda <[email protected]>
1 parent 265de54 commit a103f8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/wasm_util.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,15 @@ bool BytecodeUtil::getStrippedSource(std::string_view bytecode, std::string &ret
142142
// before it, otherwise skip it.
143143
if (ret.empty()) {
144144
const char *start = bytecode.data();
145-
ret.insert(ret.end(), start, section_start);
145+
ret.append(start, section_start);
146146
}
147147
}
148148
pos = section_data_start + section_len;
149149
} else {
150150
pos += section_len;
151151
// Save this section if we already saw a custom "precompiled_" section.
152152
if (!ret.empty()) {
153-
ret.insert(ret.end(), section_start, pos /* section end */);
153+
ret.append(section_start, pos);
154154
}
155155
}
156156
}

0 commit comments

Comments
 (0)