Commit a4a29e29 authored by Andrew Waterman's avatar Andrew Waterman Committed by edwardcwang
Browse files

Avoid silently truncating BigInt to Int

- Introduce internal helper `castToInt`, which issues an error when the input
BigInt can't be represented as Int.

- Use `castToInt` wherever we were using `toInt` in a potentially unsafe way.
parent 0028c649
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment