Commit cb821fa7 authored by Per Bothner's avatar Per Bothner

* CompileArith.java (getReturnKind): Fix for DIVIDE_GENERIC.

Fixes GitLab issues #68 "JVM crash with split-at".
parent 4c6ca789
Pipeline #129420139 failed with stage
in 5 minutes and 25 seconds
2020-03-24 Per Bothner <per@bothner.com>
* CompileArith.java (getReturnKind): Fix for DIVIDE_GENERIC.
Fixes GitLab issues #68 "JVM crash with split-at".
2020-03-18 Per Bothner <per@bothner.com>
* LispRealFormat.java, LispFormat.java: Support for srfi-48 version
......
......@@ -463,6 +463,10 @@ public class CompileArith implements Inlineable
{
if (op >= ASHIFT_GENERAL && op <= LSHIFT_RIGHT)
return kind1;
if (op == DIVIDE_GENERIC
&& kind1 > 0 && kind1 <= Arithmetic.INTNUM_CODE
&& kind2 > 0 && kind2 <= Arithmetic.INTNUM_CODE)
return Arithmetic.RATNUM_CODE;
return getReturnKind2(kind1, kind2);
}
......
Markdown is supported
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