This commit is contained in:
Roman Zaytsev Borisovich 2013-07-02 15:28:44 +04:00
parent d96fb577cd
commit e37587aed5
1 changed files with 1 additions and 1 deletions

View File

@ -525,7 +525,7 @@ void CheckOther::checkPipeParameterSize()
const Variable *var = varTok->variable();
MathLib::bigint dim;
if (var && (var->isArray() || var->isPointer()) && !var->isArgument() && ((dim=var->dimension(0U)) < 2)) {
if (var && var->isArray() && !var->isArgument() && ((dim=var->dimension(0U)) < 2)) {
const std::string strDim = MathLib::longToString(dim);
checkPipeParameterSizeError(varTok,varTok->str(), strDim);
}