From 37f1655b1757f17c1d838eae44300c74d0056bb1 Mon Sep 17 00:00:00 2001 From: "jband%netscape.com" Date: Tue, 5 Oct 1999 04:23:35 +0000 Subject: [PATCH] xpidl compiler was failing to complain that it is an error to use [shared] with 'inout' params. (no bug was filed) r=mccabe git-svn-id: svn://10.0.0.236/trunk@49802 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/typelib/xpidl/xpidl_typelib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/xpcom/typelib/xpidl/xpidl_typelib.c b/mozilla/xpcom/typelib/xpidl/xpidl_typelib.c index de311abf01f..2bb6c14bcea 100644 --- a/mozilla/xpcom/typelib/xpidl/xpidl_typelib.c +++ b/mozilla/xpcom/typelib/xpidl/xpidl_typelib.c @@ -960,7 +960,7 @@ fill_pd_from_param(TreeState *state, XPTParamDescriptor *pd, IDL_tree tree) if (IDL_tree_property_get(IDL_PARAM_DCL(tree).simple_declarator, "shared")) { - if (flags == XPT_PD_IN) { + if (flags & XPT_PD_IN) { IDL_tree_error(tree, "can't have [shared] with in%s param " "(only out)\n", flags & XPT_PD_OUT ? "out" : "");