Skip to content

Commit

Permalink
account for longs/doubles on stack for static fns
Browse files Browse the repository at this point in the history
  • Loading branch information
richhickey committed Jun 10, 2010
1 parent 0d7aed7 commit 27d9f6a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/jvm/clojure/lang/Compiler.java
Expand Up @@ -4599,6 +4599,11 @@ static FnMethod parse(ObjExpr objx, ISeq form, boolean isStatic) throws Exceptio
{
method.argtypes = argtypes.toArray(new Type[argtypes.size()]);
method.argclasses = argclasses.toArray(new Class[argtypes.size()]);
for(int i = 0; i < method.argclasses.length; i++)
{
if(method.argclasses[i] == long.class || method.argclasses[i] == double.class)
getAndIncLocalNum();
}
}
method.body = (new BodyExpr.Parser()).parse(C.RETURN, body);
return method;
Expand Down

0 comments on commit 27d9f6a

Please sign in to comment.