Generator: added a test of a full array

This commit is contained in:
Benoît Blanchon
2014-06-24 13:38:48 +02:00
parent df25a21050
commit aa8cff7101
2 changed files with 11 additions and 2 deletions

View File

@ -16,7 +16,7 @@ public:
void add(const char* data)
{
if (itemCount <= N)
if (itemCount < N)
items[itemCount++] = data;
}