Skip to content

Commit cec66be

Browse files
Make wasm::IString::operator bool() explicit (WebAssembly#5371)
Fixes WebAssembly#5370
1 parent 49fb2e2 commit cec66be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/support/istring.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ struct IString {
6767

6868
char operator[](int x) const { return str[x]; }
6969

70-
operator bool() const { return str.data() != nullptr; }
70+
explicit operator bool() const { return str.data() != nullptr; }
7171

7272
// TODO: deprecate?
7373
bool is() const { return bool(*this); }

0 commit comments

Comments
 (0)