Merge pull request #147 from JustRamires/master

Ticket #4801
This commit is contained in:
Daniel Marjamäki 2013-07-02 22:39:14 -07:00
commit c1dac347b9
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);
}