[Aegisvm-devel] bug fix (divide by zero)
Status: Pre-Alpha
Brought to you by:
pwlfong
|
From: madhatter <mad...@al...> - 2002-10-08 13:49:29
|
Hi, attached is a patch that does a divide by zero check, and if necessary throws an ArithmeticException on all division opcodes. It's also at http://www.alpha-beta.org/madhatter/aegisvm.div_ArithmeticException.diff if you want to get it there. Um, the code is directly in the inner loop of ae_interpret_bytecode, which might not be what you want, since it's the same code written twice for each data type (division and remainder ops), if you want me to implement it as a macro that's fine. I hope to do more with AegisVM, let me know. |