From 95a8b6e5e894fe4891fb23ff2f00275d86f8055c Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Sun, 25 Mar 2012 17:38:34 -0700 Subject: [PATCH] Fix & vs. && in logical test. Issue #196. --- decl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decl.cpp b/decl.cpp index 4ddc6219..748cffb1 100644 --- a/decl.cpp +++ b/decl.cpp @@ -579,7 +579,7 @@ Declarator::GetType(DeclSpecs *ds) const { const Type *type = GetType(baseType, ds); if (ds->declSpecList.size() > 0 && - type != NULL & + type != NULL && dynamic_cast(type) == NULL) { Error(pos, "__declspec specifiers for non-function type \"%s\" are " "not used.", type->GetString().c_str());