diff options
Diffstat (limited to 'libacc/acc.cpp')
| -rw-r--r-- | libacc/acc.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libacc/acc.cpp b/libacc/acc.cpp index f70c7a13..676947e2 100644 --- a/libacc/acc.cpp +++ b/libacc/acc.cpp @@ -4409,15 +4409,11 @@ class Compiler : public ErrorSink { Type* acceptDecl2(Type* pType, tokenid_t& declName, bool nameAllowed, bool nameRequired, bool& reportFailure) { - int ptrCounter = 0; while (accept('*')) { - ptrCounter++; + pType = createType(TY_POINTER, pType, NULL); } pType = acceptDecl3(pType, declName, nameAllowed, nameRequired, reportFailure); - while (ptrCounter-- > 0) { - pType = createType(TY_POINTER, pType, NULL); - } return pType; } |
