From cec66beba45668dbad74abd2396bb80d33595ff0 Mon Sep 17 00:00:00 2001 From: higher-performance <113926381+higher-performance@users.noreply.github.com> Date: Wed, 21 Dec 2022 13:11:46 -0500 Subject: Make wasm::IString::operator bool() explicit (#5371) Fixes #5370 --- src/support/istring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3