rdaum/moor

Handling for MAXINT/MAXOBJ in various opcodes

Opened this issue · 0 comments

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.

// TODO: Handling for MAXINT/MAXOBJ in various opcodes

                    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.