Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
MierenManz committed Dec 8, 2023
1 parent cd5338d commit dc59a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compound/tagged_union.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class TaggedUnion<

read(dt: DataView, options: Options = { byteOffset: 0 }): V {
const discriminant = this.#discriminant.read(dt, options);
this.alignOffset(options);
super.alignOffset(options);
const codec = this.#record[discriminant];
if (!codec) throw new TypeError("Unknown discriminant");
return codec.read(dt, options) as V;
Expand Down

0 comments on commit dc59a56

Please sign in to comment.