summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhigher-performance <113926381+higher-performance@users.noreply.github.com>2022-12-21 13:11:46 -0500
committerGitHub <noreply@github.com>2022-12-21 18:11:46 +0000
commitcec66beba45668dbad74abd2396bb80d33595ff0 (patch)
tree82cc9590a6e1cc81f9c5d3dfcf20ee3de6dec5db /src
parent49fb2e23bb3c932389f23fdda33a32d034ca9a0c (diff)
downloadbinaryen-cec66beba45668dbad74abd2396bb80d33595ff0.tar.gz
binaryen-cec66beba45668dbad74abd2396bb80d33595ff0.tar.bz2
binaryen-cec66beba45668dbad74abd2396bb80d33595ff0.zip
Make wasm::IString::operator bool() explicit (#5371)
Fixes #5370
Diffstat (limited to 'src')
-rw-r--r--src/support/istring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/support/istring.h b/src/support/istring.h
index 14f991c30..f2e23d429 100644
--- a/src/support/istring.h
+++ b/src/support/istring.h
@@ -67,7 +67,7 @@ public:
char operator[](int x) const { return str[x]; }
- operator bool() const { return str.data() != nullptr; }
+ explicit operator bool() const { return str.data() != nullptr; }
// TODO: deprecate?
bool is() const { return bool(*this); }