mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 00:40:55 +00:00
[qfcc] Fix out-by-one in type meta check
This commit is contained in:
parent
1da6eb5f51
commit
c6746fa391
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ qfo_encode_type (type_t *type)
|
||||||
}
|
}
|
||||||
if (type->type_def)
|
if (type->type_def)
|
||||||
return type->type_def;
|
return type->type_def;
|
||||||
if (type->meta > sizeof (funcs) / (sizeof (funcs[0])))
|
if (type->meta >= sizeof (funcs) / (sizeof (funcs[0])))
|
||||||
internal_error (0, "bad type meta type");
|
internal_error (0, "bad type meta type");
|
||||||
if (!type->encoding)
|
if (!type->encoding)
|
||||||
type->encoding = type_get_encoding (type);
|
type->encoding = type_get_encoding (type);
|
||||||
|
|
Loading…
Reference in a new issue