Fix a minor error check mistake

This commit is contained in:
Bill Currie 2019-06-18 08:54:18 +09:00
parent fe73547f43
commit fc50376297

View file

@ -109,7 +109,7 @@ static type_t *types_freelist;
etype_t
low_level_type (type_t *type)
{
if (type->type >= ev_type_count)
if (type->type > ev_type_count)
internal_error (0, "invalid type");
if (type->type == ev_type_count)
internal_error (0, "found 'type count' type");