summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/s2wasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index 2850ac564..c4bd76e43 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -341,7 +341,7 @@ class S2WasmBuilder {
// The LLVM backend emits function names as name@FUNCTION.
bool isFunctionName(Name name) {
- return strstr(name.str, "@FUNCTION");
+ return !!strstr(name.str, "@FUNCTION");
}
// Drop the @ and after it.
Name cleanFunction(Name name) {