diff --git a/decl.cpp b/decl.cpp index f4382c8b..f3eb701e 100644 --- a/decl.cpp +++ b/decl.cpp @@ -578,7 +578,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());