Skip to content

Commit

Permalink
Handle possible bigint return type
Browse files Browse the repository at this point in the history
  • Loading branch information
javagl committed Aug 30, 2023
1 parent 0e4c443 commit 197fcc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validation/metadata/BinaryPropertyTableValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ export class BinaryPropertyTableValidator {
index,
arrayOffsetType
);
return arrayOffset;
return Number(arrayOffset);
}
/**
* Returns the string offset of the given property at the specified
Expand Down Expand Up @@ -1065,6 +1065,6 @@ export class BinaryPropertyTableValidator {
index,
stringOffsetType
);
return stringOffset;
return Number(stringOffset);
}
}

0 comments on commit 197fcc3

Please sign in to comment.