etaoins / llambda

Scheme R7RS frontend for LLVM
Other
69 stars 6 forks source link

Check for overflow when truncating integers #57

Closed etaoins closed 9 years ago

etaoins commented 9 years ago

When truncating a native integer to a smaller size we should ensure it doesn't overflow. For example, certain stdlib procedures take 32bit list positions which can be silently truncated from large dynamic boxed or 64bit integers.