From 241f8baac7494542f8d0b42d69b4dca4f494d221 Mon Sep 17 00:00:00 2001 From: Brian Ben Maranville Date: Thu, 18 Feb 2021 13:46:54 -0500 Subject: [PATCH] wrong bit selected when checking link_type_field_present on link objects --- esm/dataobjects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esm/dataobjects.js b/esm/dataobjects.js index 7f3fd01..8566097 100644 --- a/esm/dataobjects.js +++ b/esm/dataobjects.js @@ -456,7 +456,7 @@ export class DataObjects { offset += 2; assert(version == 1); let size_of_length_of_link_name = Math.pow(2, (flags & 0b00000011)); - let link_type_field_present = flags & 0b00000100; + let link_type_field_present = flags & 0b00001000; let link_name_character_set_field_present = flags & 0b00010000; var link_type; if (link_type_field_present) {