From bb4246887ab6a0833cc4d2263b31f951ce314061 Mon Sep 17 00:00:00 2001 From: Markus Engel Date: Sat, 14 Sep 2013 22:43:15 +0200 Subject: Modified SP_IS_ macros. (bzr r11608.1.122) --- src/sp-string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sp-string.h') diff --git a/src/sp-string.h b/src/sp-string.h index 2c6a92001..d7634a719 100644 --- a/src/sp-string.h +++ b/src/sp-string.h @@ -11,7 +11,7 @@ #include "sp-object.h" #define SP_STRING(obj) ((SPString*)obj) -#define SP_IS_STRING(obj) (dynamic_cast((SPObject*)obj)) +#define SP_IS_STRING(obj) (dynamic_cast((SPObject*)obj) != NULL) class SPString : public SPObject { public: -- cgit v1.2.3