Added a few more comments. Changed rt_hash to return an enum record_type rather than an enum record_type_hash. Modified rfs and rfs_refr to suit.

This commit is contained in:
2022-09-07 10:09:25 +10:00
parent 86d2c1a002
commit de1a27e337
4 changed files with 140 additions and 102 deletions

View File

@@ -261,7 +261,7 @@ char *walk_concat(char *data, size_t size, struct walker_callbacks cb) {
const Type4 *type = (Type4 *)data;
// check valid type
assert(rt[rth2rt[rt_hash(type->uint)]] == type->uint);
assert(rt[rt_hash(type->uint)] == type->uint);
// only need to distinguish between groups and records
if (type->uint == rt[GRUP])