From 06f9bf2eaae15c4331a3cb348813fbb0190a311a Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 13 Jul 2012 19:38:14 +0200 Subject: [PATCH] Fixed compiler warning. --- base/variant.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/variant.h b/base/variant.h index bcd63d4fb..7fe047a22 100644 --- a/base/variant.h +++ b/base/variant.h @@ -90,7 +90,7 @@ public: operator bool(void) const { - return static_cast(*this); + return (static_cast(*this) != 0); } operator string(void) const