summaryrefslogtreecommitdiff
path: root/src/s2wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/s2wasm.h')
-rw-r--r--src/s2wasm.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index 5f2e1d497..759dcf44a 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -894,8 +894,7 @@ public:
}
std::string sig = getSig(curr);
sigsForCode[code].insert(sig);
- std::string fixedTarget = EMSCRIPTEN_ASM_CONST.str;
- fixedTarget += '_' + sig;
+ std::string fixedTarget = std::string("_") + EMSCRIPTEN_ASM_CONST.str + '_' + sig;
curr->target = cashew::IString(fixedTarget.c_str(), false);
arg->value = Literal(id);
// add import, if necessary