Fix & vs. && in logical test.

Issue #196.
This commit is contained in:
Matt Pharr
2012-03-25 17:38:34 -07:00
parent 388d0d2cfd
commit 95a8b6e5e8

View File

@@ -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<const FunctionType *>(type) == NULL) {
Error(pos, "__declspec specifiers for non-function type \"%s\" are "
"not used.", type->GetString().c_str());