From f48e0d957a0571a01b93a9c92913f15458420829 Mon Sep 17 00:00:00 2001 From: Martin Stjernholm <mast@lysator.liu.se> Date: Wed, 2 Aug 2006 22:19:40 +0200 Subject: [PATCH] Fixed bogus IS_ZERO macro. Rev: src/post_modules/COM/com.c:1.9 --- src/post_modules/COM/com.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/post_modules/COM/com.c b/src/post_modules/COM/com.c index a527bcbbcb..58976c958d 100644 --- a/src/post_modules/COM/com.c +++ b/src/post_modules/COM/com.c @@ -1,5 +1,5 @@ /* - * $Id: com.c,v 1.8 2006/07/09 22:44:38 nilsson Exp $ + * $Id: com.c,v 1.9 2006/08/02 20:19:40 mast Exp $ * * Pike interface to Common Object Model (COM) * @@ -1476,10 +1476,10 @@ static void f_get_object(INT32 args) int type = 0; IDispatch *pDispatch; - if (args < 1 || args > 2 || (args == 1 && IS_ZERO(&Pike_sp[-args]))) + if (args < 1 || args > 2 || (args == 1 && UNSAFE_IS_ZERO(&Pike_sp[-args]))) Pike_error("Incorrect number of arguments to GetObject.\n"); - if (args >= 1 && !IS_ZERO(&Pike_sp[-args])) + if (args >= 1 && !UNSAFE_IS_ZERO(&Pike_sp[-args])) { PCHARP tmp; type += 0x1; @@ -1495,7 +1495,7 @@ static void f_get_object(INT32 args) SET_INDEX_PCHARP(tmp, filename->len, 0); } - if (args >= 2 && !IS_ZERO(&Pike_sp[1-args])) + if (args >= 2 && !UNSAFE_IS_ZERO(&Pike_sp[1-args])) { type += 0x2; -- GitLab