moor
moor copied to clipboard
Handling for MAXINT/MAXOBJ in various opcodes
Given we're 64-bit this is highly unlikely to ever be a concern for us, but
we also don't want to *crash* on obscene values, so impl that here.
https://github.com/rdaum/moor/blob/47435a1442a1f5532c23944029e90982baa99bff/crates/kernel/src/vm/vm_execute.rs#L261
let (from, next_val) = {
let (to, from) = f.peek2();
// TODO: Handling for MAXINT/MAXOBJ in various opcodes
// Given we're 64-bit this is highly unlikely to ever be a concern for us, but
// we also don't want to *crash* on obscene values, so impl that here.