fixed a bug in enum_from_name() function
This commit is contained in:
@@ -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