Skip to content

Commit

Permalink
Fix: Failed conversion of version number to Int64
Browse files Browse the repository at this point in the history
  • Loading branch information
Shresht7 committed Dec 25, 2023
1 parent 8da9a08 commit 0977df7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/helpers/bg3/Version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ export class Version {
/** @returns Int64 representation of the version number */
toInt64(): bigint {
const major = BigInt(this.major) << 55n;
const minor = (BigInt(this.minor) << 47n) & 0xFFn;
const revision = (BigInt(this.revision) << 31n) & 0xFFFFn;
const build = (BigInt(this.build)) & 0xFFFFFFn;
const minor = (BigInt(this.minor) << 47n);
const revision = (BigInt(this.revision) << 31n);
const build = (BigInt(this.build));
return major + minor + revision + build;
}

Expand Down

0 comments on commit 0977df7

Please sign in to comment.