summaryrefslogtreecommitdiff
path: root/src/interp/interp-inl.h
diff options
context:
space:
mode:
authorAndrei Maiboroda <andrei@ethereum.org>2020-09-14 18:47:58 +0200
committerGitHub <noreply@github.com>2020-09-14 09:47:58 -0700
commit21350996d5bbcd9cafbaa3a5687e6fb503da060c (patch)
tree20279c0b3ebc03a762b9a66f66f7ba0629de0f31 /src/interp/interp-inl.h
parent58e0e3812d69efb3b5f55613b0f73d5f864e6b51 (diff)
downloadwabt-21350996d5bbcd9cafbaa3a5687e6fb503da060c.tar.gz
wabt-21350996d5bbcd9cafbaa3a5687e6fb503da060c.tar.bz2
wabt-21350996d5bbcd9cafbaa3a5687e6fb503da060c.zip
Fix RefPtr::empty() (#1544)
Diffstat (limited to 'src/interp/interp-inl.h')
-rw-r--r--src/interp/interp-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interp/interp-inl.h b/src/interp/interp-inl.h
index fbec1014..9cab1fa9 100644
--- a/src/interp/interp-inl.h
+++ b/src/interp/interp-inl.h
@@ -297,7 +297,7 @@ RefPtr<U> RefPtr<T>::As() {
template <typename T>
bool RefPtr<T>::empty() const {
- return obj_ != nullptr;
+ return obj_ == nullptr;
}
template <typename T>