Skip to content

Commit 27d9f6a

Browse files
committed
account for longs/doubles on stack for static fns
1 parent 0d7aed7 commit 27d9f6a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/jvm/clojure/lang/Compiler.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4599,6 +4599,11 @@ static FnMethod parse(ObjExpr objx, ISeq form, boolean isStatic) throws Exceptio
45994599
{
46004600
method.argtypes = argtypes.toArray(new Type[argtypes.size()]);
46014601
method.argclasses = argclasses.toArray(new Class[argtypes.size()]);
4602+
for(int i = 0; i < method.argclasses.length; i++)
4603+
{
4604+
if(method.argclasses[i] == long.class || method.argclasses[i] == double.class)
4605+
getAndIncLocalNum();
4606+
}
46024607
}
46034608
method.body = (new BodyExpr.Parser()).parse(C.RETURN, body);
46044609
return method;

0 commit comments

Comments
 (0)