fixed a bug in enum_from_name() function
This commit is contained in:
1 parent
458e7779a8
commit
dc1b2eb2e8
1 file changed
+1
-1
@@ -43,7 +43,7 @@ int enum_from_name(enum_name_t *e, char *name)
|
|||||||
{
|
{
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
int i, count = e->last - e->first;
|
int i, count = e->last - e->first + 1;
|
||||||
|
|
||||||
for (i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user