fixed a bug in enum_from_name() function

This commit is contained in:
Andreas Steffen
2010-12-12 12:54:36 +01:00
parent 458e7779a8
commit dc1b2eb2e8
+1 -1
View File
@@ -43,7 +43,7 @@ int enum_from_name(enum_name_t *e, char *name)
{
do
{
int i, count = e->last - e->first;
int i, count = e->last - e->first + 1;
for (i = 0; i < count; i++)
{