Skip to content

Conversation

@MaxGraey
Copy link
Member

Example:

export function test(): u64 {
  return 18446744073709551614; // i64.const -2
}

Before:

assert(exports.test() == 18446744073709551614n) // -> fail due to return -2n

Now with this PR:

assert(exports.test() == 18446744073709551614n) // pass!
  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

@MaxGraey MaxGraey merged commit fa4a6ef into AssemblyScript:main Jul 20, 2022
@MaxGraey MaxGraey deleted the bindgen-unsigned-lowering branch July 20, 2022 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants